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
dbbef46e
Commit
dbbef46e
authored
Feb 26, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: There is no unnamed union in D3DLIGHT7.
parent
e9da4016
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
d3d.c
dlls/ddraw/tests/d3d.c
+7
-7
No files found.
dlls/ddraw/tests/d3d.c
View file @
dbbef46e
...
...
@@ -248,33 +248,33 @@ static void LightTest(void)
U3
(
light
.
dcvDiffuse
).
b
=
1
.
f
;
U3
(
light
.
dvDirection
).
z
=
1
.
f
;
U3
(
light
.
dvAttenuation0
)
=
-
1
.
0
/
0
.
0
;
/* -INFINITY */
light
.
dvAttenuation0
=
-
1
.
0
/
0
.
0
;
/* -INFINITY */
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
DDERR_INVALIDPARAMS
,
"SetLight returned: %x
\n
"
,
rc
);
U3
(
light
.
dvAttenuation0
)
=
-
1
.
0
;
light
.
dvAttenuation0
=
-
1
.
0
;
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
DDERR_INVALIDPARAMS
,
"SetLight returned: %x
\n
"
,
rc
);
U3
(
light
.
dvAttenuation0
)
=
0
.
0
;
light
.
dvAttenuation0
=
0
.
0
;
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
U3
(
light
.
dvAttenuation0
)
=
1
.
0
;
light
.
dvAttenuation0
=
1
.
0
;
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
U3
(
light
.
dvAttenuation0
)
=
1
.
0
/
0
.
0
;
/* +INFINITY */
light
.
dvAttenuation0
=
1
.
0
/
0
.
0
;
/* +INFINITY */
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
U3
(
light
.
dvAttenuation0
)
=
0
.
0
/
0
.
0
;
/* NaN */
light
.
dvAttenuation0
=
0
.
0
/
0
.
0
;
/* NaN */
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
/* Directional light ignores attenuation */
light
.
dltType
=
D3DLIGHT_DIRECTIONAL
;
U3
(
light
.
dvAttenuation0
)
=
-
1
.
0
;
light
.
dvAttenuation0
=
-
1
.
0
;
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
}
...
...
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