Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
42dc7fb1
Commit
42dc7fb1
authored
Nov 16, 2008
by
David Adam
Committed by
Alexandre Julliard
Nov 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Add a few tests for MatrixStack.
parent
f90881cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
math.c
dlls/d3dx8/tests/math.c
+12
-0
No files found.
dlls/d3dx8/tests/math.c
View file @
42dc7fb1
...
@@ -1479,6 +1479,18 @@ static void test_matrix_stack(void)
...
@@ -1479,6 +1479,18 @@ static void test_matrix_stack(void)
ok
(
SUCCEEDED
(
hr
),
"Pop failed, hr %#x
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Pop failed, hr %#x
\n
"
,
hr
);
ok
(
D3DXMatrixIsIdentity
(
ID3DXMatrixStack_GetTop
(
stack
)),
"The top should be an identity matrix
\n
"
);
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
.
0
f
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Expected D3DERR_INVALIDCALL, got %#x
\n
"
,
hr
);
hr
=
ID3DXMatrixStack_RotateAxisLocal
(
stack
,
NULL
,
2
.
0
f
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Expected D3DERR_INVALIDCALL, got %#x
\n
"
,
hr
);
refcount
=
ID3DXMatrixStack_Release
(
stack
);
refcount
=
ID3DXMatrixStack_Release
(
stack
);
ok
(
!
refcount
,
"Matrix stack has %u references left.
\n
"
,
refcount
);
ok
(
!
refcount
,
"Matrix stack has %u references left.
\n
"
,
refcount
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment