mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 10:59:45 +00:00
d3dx8: Add a few tests for MatrixStack.
This commit is contained in:
parent
f90881cd36
commit
42dc7fb1c4
@ -1479,6 +1479,18 @@ static void test_matrix_stack(void)
|
||||
ok(SUCCEEDED(hr), "Pop failed, hr %#x\n", hr);
|
||||
ok(D3DXMatrixIsIdentity(ID3DXMatrixStack_GetTop(stack)), "The top should be an identity matrix\n");
|
||||
|
||||
hr = ID3DXMatrixStack_MultMatrix(stack, NULL);
|
||||
ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
|
||||
|
||||
hr = ID3DXMatrixStack_MultMatrixLocal(stack, NULL);
|
||||
ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
|
||||
|
||||
hr = ID3DXMatrixStack_RotateAxis(stack, NULL, 2.0f);
|
||||
ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
|
||||
|
||||
hr = ID3DXMatrixStack_RotateAxisLocal(stack, NULL, 2.0f);
|
||||
ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
|
||||
|
||||
refcount = ID3DXMatrixStack_Release(stack);
|
||||
ok(!refcount, "Matrix stack has %u references left.\n", refcount);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user