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
5c052b69
Commit
5c052b69
authored
Mar 26, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Improve D3DXMatrixInverse() test a tiny bit.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aec8e12a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
math.c
dlls/d3dx9_36/tests/math.c
+6
-3
No files found.
dlls/d3dx9_36/tests/math.c
View file @
5c052b69
...
...
@@ -321,11 +321,11 @@ static void D3DXMatrixTest(void)
D3DXMATRIX
expectedmat
,
gotmat
,
mat
,
mat2
,
mat3
;
BOOL
expected
,
got
,
equal
;
float
angle
,
determinant
;
D3DXMATRIX
*
funcpointer
;
D3DXPLANE
plane
;
D3DXQUATERNION
q
,
r
;
D3DXVECTOR3
at
,
axis
,
eye
,
last
;
D3DXVECTOR4
light
;
D3DXMATRIX
*
ret
;
U
(
mat
).
m
[
0
][
1
]
=
5
.
0
f
;
U
(
mat
).
m
[
0
][
2
]
=
7
.
0
f
;
U
(
mat
).
m
[
0
][
3
]
=
8
.
0
f
;
U
(
mat
).
m
[
1
][
0
]
=
11
.
0
f
;
U
(
mat
).
m
[
1
][
2
]
=
16
.
0
f
;
U
(
mat
).
m
[
1
][
3
]
=
33
.
0
f
;
...
...
@@ -410,8 +410,11 @@ static void D3DXMatrixTest(void)
expect_matrix
(
&
expectedmat
,
&
gotmat
,
1
);
equal
=
compare_float
(
determinant
,
-
147888
.
0
f
,
0
);
ok
(
equal
,
"Got unexpected determinant %.8e.
\n
"
,
determinant
);
funcpointer
=
D3DXMatrixInverse
(
&
gotmat
,
NULL
,
&
mat2
);
ok
(
funcpointer
==
NULL
,
"Expected: %p, Got: %p
\n
"
,
NULL
,
funcpointer
);
determinant
=
5
.
0
f
;
ret
=
D3DXMatrixInverse
(
&
gotmat
,
&
determinant
,
&
mat2
);
ok
(
!
ret
,
"Unexpected return value %p.
\n
"
,
ret
);
expect_matrix
(
&
expectedmat
,
&
gotmat
,
1
);
ok
(
compare_float
(
determinant
,
5
.
0
f
,
0
),
"Unexpected determinant %.8e.
\n
"
,
determinant
);
/*____________D3DXMatrixIsIdentity______________*/
expected
=
FALSE
;
...
...
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