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
1eb52667
Commit
1eb52667
authored
Feb 19, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Avoid endless loop, when T&L is not supported.
parent
01cba076
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
d3d.c
dlls/ddraw/tests/d3d.c
+6
-0
No files found.
dlls/ddraw/tests/d3d.c
View file @
1eb52667
...
@@ -358,6 +358,12 @@ static void LightTest(void)
...
@@ -358,6 +358,12 @@ static void LightTest(void)
rc
=
IDirect3DDevice7_GetCaps
(
lpD3DDevice
,
&
caps
);
rc
=
IDirect3DDevice7_GetCaps
(
lpD3DDevice
,
&
caps
);
ok
(
rc
==
D3D_OK
,
"IDirect3DDevice7_GetCaps failed with %x
\n
"
,
rc
);
ok
(
rc
==
D3D_OK
,
"IDirect3DDevice7_GetCaps failed with %x
\n
"
,
rc
);
if
(
caps
.
dwMaxActiveLights
==
(
DWORD
)
-
1
)
{
/* Some cards without T&L Support return -1 (Examples: Vodoo banshee, RivaTNT / NV4) */
skip
(
"T&L not supported
\n
"
);
return
;
}
for
(
i
=
1
;
i
<=
caps
.
dwMaxActiveLights
;
i
++
)
{
for
(
i
=
1
;
i
<=
caps
.
dwMaxActiveLights
;
i
++
)
{
rc
=
IDirect3DDevice7_LightEnable
(
lpD3DDevice
,
i
,
TRUE
);
rc
=
IDirect3DDevice7_LightEnable
(
lpD3DDevice
,
i
,
TRUE
);
ok
(
rc
==
D3D_OK
,
"Enabling light %u failed with %x
\n
"
,
i
,
rc
);
ok
(
rc
==
D3D_OK
,
"Enabling light %u failed with %x
\n
"
,
i
,
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