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
8823decb
Commit
8823decb
authored
Jul 17, 2009
by
David Adam
Committed by
Alexandre Julliard
Jul 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Fix D3DXVec4Normalize to make tests pass in Windows.
parent
878bcb51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
math.c
dlls/d3dx9_36/math.c
+2
-10
math.c
dlls/d3dx9_36/tests/math.c
+0
-4
No files found.
dlls/d3dx9_36/math.c
View file @
8823decb
...
@@ -1725,20 +1725,12 @@ D3DXVECTOR4* WINAPI D3DXVec4Normalize(D3DXVECTOR4 *pout, CONST D3DXVECTOR4 *pv)
...
@@ -1725,20 +1725,12 @@ D3DXVECTOR4* WINAPI D3DXVec4Normalize(D3DXVECTOR4 *pout, CONST D3DXVECTOR4 *pv)
FLOAT
norm
;
FLOAT
norm
;
norm
=
D3DXVec4Length
(
pv
);
norm
=
D3DXVec4Length
(
pv
);
if
(
!
norm
)
{
out
.
x
=
0
.
0
f
;
out
.
y
=
0
.
0
f
;
out
.
z
=
0
.
0
f
;
out
.
w
=
0
.
0
f
;
}
else
{
out
.
x
=
pv
->
x
/
norm
;
out
.
x
=
pv
->
x
/
norm
;
out
.
y
=
pv
->
y
/
norm
;
out
.
y
=
pv
->
y
/
norm
;
out
.
z
=
pv
->
z
/
norm
;
out
.
z
=
pv
->
z
/
norm
;
out
.
w
=
pv
->
w
/
norm
;
out
.
w
=
pv
->
w
/
norm
;
}
*
pout
=
out
;
*
pout
=
out
;
return
pout
;
return
pout
;
}
}
...
...
dlls/d3dx9_36/tests/math.c
View file @
8823decb
...
@@ -1419,10 +1419,6 @@ static void D3DXVector4Test(void)
...
@@ -1419,10 +1419,6 @@ static void D3DXVector4Test(void)
expectedvec
.
x
=
1
.
0
f
/
11
.
0
f
;
expectedvec
.
y
=
2
.
0
f
/
11
.
0
f
;
expectedvec
.
z
=
4
.
0
f
/
11
.
0
f
;
expectedvec
.
w
=
10
.
0
f
/
11
.
0
f
;
expectedvec
.
x
=
1
.
0
f
/
11
.
0
f
;
expectedvec
.
y
=
2
.
0
f
/
11
.
0
f
;
expectedvec
.
z
=
4
.
0
f
/
11
.
0
f
;
expectedvec
.
w
=
10
.
0
f
/
11
.
0
f
;
D3DXVec4Normalize
(
&
gotvec
,
&
u
);
D3DXVec4Normalize
(
&
gotvec
,
&
u
);
expect_vec4
(
expectedvec
,
gotvec
);
expect_vec4
(
expectedvec
,
gotvec
);
/* Test the nul vector */
expectedvec
.
x
=
0
.
0
f
;
expectedvec
.
y
=
0
.
0
f
;
expectedvec
.
z
=
0
.
0
f
;
expectedvec
.
w
=
0
.
0
f
;
D3DXVec4Normalize
(
&
gotvec
,
&
nul
);
expect_vec4
(
expectedvec
,
gotvec
);
/*_______________D3DXVec4Scale____________________________*/
/*_______________D3DXVec4Scale____________________________*/
expectedvec
.
x
=
-
6
.
5
f
;
expectedvec
.
y
=
-
13
.
0
f
;
expectedvec
.
z
=
-
26
.
0
f
;
expectedvec
.
w
=
-
65
.
0
f
;
expectedvec
.
x
=
-
6
.
5
f
;
expectedvec
.
y
=
-
13
.
0
f
;
expectedvec
.
z
=
-
26
.
0
f
;
expectedvec
.
w
=
-
65
.
0
f
;
...
...
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