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
b52118d5
Commit
b52118d5
authored
Nov 16, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Also test that render states get reset in test_reset().
parent
f94f753e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
device.c
dlls/d3d9/tests/device.c
+11
-0
No files found.
dlls/d3d9/tests/device.c
View file @
b52118d5
...
...
@@ -876,6 +876,7 @@ static void test_reset(void)
IDirect3DDevice9
*
device1
=
NULL
;
IDirect3DDevice9
*
device2
=
NULL
;
D3DCAPS9
caps
;
DWORD
value
;
struct
{
UINT
w
;
...
...
@@ -976,6 +977,12 @@ static void test_reset(void)
hr
=
IDirect3DDevice9_SetViewport
(
device1
,
&
vp
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetViewport failed with %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_GetRenderState
(
device1
,
D3DRS_LIGHTING
,
&
value
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get render state, hr %#x.
\n
"
,
hr
);
ok
(
!!
value
,
"Got unexpected value %#x for D3DRS_LIGHTING.
\n
"
,
value
);
hr
=
IDirect3DDevice9_SetRenderState
(
device1
,
D3DRS_LIGHTING
,
FALSE
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set render state, hr %#x.
\n
"
,
hr
);
ZeroMemory
(
&
d3dpp
,
sizeof
(
d3dpp
)
);
d3dpp
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
d3dpp
.
Windowed
=
FALSE
;
...
...
@@ -987,6 +994,10 @@ static void test_reset(void)
hr
=
IDirect3DDevice9_TestCooperativeLevel
(
device1
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_TestCooperativeLevel after a successful reset returned %#x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_GetRenderState
(
device1
,
D3DRS_LIGHTING
,
&
value
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get render state, hr %#x.
\n
"
,
hr
);
ok
(
!!
value
,
"Got unexpected value %#x for D3DRS_LIGHTING.
\n
"
,
value
);
ZeroMemory
(
&
vp
,
sizeof
(
vp
));
hr
=
IDirect3DDevice9_GetViewport
(
device1
,
&
vp
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_GetViewport failed with %08x
\n
"
,
hr
);
...
...
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