Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
08d17fd2
Commit
08d17fd2
authored
Oct 30, 2007
by
David Adam
Committed by
Alexandre Julliard
Oct 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Fix the condition in D3DXMatrixIsIdentity.
parent
e8d7af2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
math.c
dlls/d3dx8/tests/math.c
+4
-0
d3dx8math.inl
include/d3dx8math.inl
+2
-3
No files found.
dlls/d3dx8/tests/math.c
View file @
08d17fd2
...
@@ -140,6 +140,10 @@ static void D3DXMatrixTest(void)
...
@@ -140,6 +140,10 @@ static void D3DXMatrixTest(void)
expected
=
TRUE
;
expected
=
TRUE
;
got
=
D3DXMatrixIsIdentity
(
&
mat
);
got
=
D3DXMatrixIsIdentity
(
&
mat
);
ok
(
expected
==
got
,
"Expected : %d, Got : %d
\n
"
,
expected
,
got
);
ok
(
expected
==
got
,
"Expected : %d, Got : %d
\n
"
,
expected
,
got
);
U
(
mat
).
m
[
0
][
0
]
=
0
.
00000
9
f
;
expected
=
FALSE
;
got
=
D3DXMatrixIsIdentity
(
&
mat
);
ok
(
expected
==
got
,
"Expected : %d, Got : %d
\n
"
,
expected
,
got
);
/* Test the NULL case */
/* Test the NULL case */
expected
=
FALSE
;
expected
=
FALSE
;
got
=
D3DXMatrixIsIdentity
(
NULL
);
got
=
D3DXMatrixIsIdentity
(
NULL
);
...
...
include/d3dx8math.inl
View file @
08d17fd2
...
@@ -351,7 +351,6 @@ static inline BOOL D3DXMatrixIsIdentity(D3DXMATRIX *pm)
...
@@ -351,7 +351,6 @@ static inline BOOL D3DXMatrixIsIdentity(D3DXMATRIX *pm)
{
{
int i,j;
int i,j;
D3DXMATRIX testmatrix;
D3DXMATRIX testmatrix;
BOOL equal=TRUE;
if ( !pm ) return FALSE;
if ( !pm ) return FALSE;
D3DXMatrixIdentity(&testmatrix);
D3DXMatrixIdentity(&testmatrix);
...
@@ -359,10 +358,10 @@ static inline BOOL D3DXMatrixIsIdentity(D3DXMATRIX *pm)
...
@@ -359,10 +358,10 @@ static inline BOOL D3DXMatrixIsIdentity(D3DXMATRIX *pm)
{
{
for (j=0; j<4; j++)
for (j=0; j<4; j++)
{
{
if (
fabs(D3DX_U(*pm).m[i][j] - D3DX_U(testmatrix).m[i][j]) > 0.0001 ) equal =
FALSE;
if (
D3DX_U(*pm).m[i][j] != D3DX_U(testmatrix).m[i][j] ) return
FALSE;
}
}
}
}
return
equal
;
return
TRUE
;
}
}
#undef D3DX_U
#undef D3DX_U
...
...
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