Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
f94f753e
Commit
f94f753e
authored
Nov 16, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Also test that render states get reset in test_reset().
parent
ffd892f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
device.c
dlls/d3d8/tests/device.c
+11
-0
No files found.
dlls/d3d8/tests/device.c
View file @
f94f753e
...
...
@@ -1022,6 +1022,7 @@ static void test_reset(void)
D3DVIEWPORT8
vp
;
D3DCAPS8
caps
;
DWORD
shader
;
DWORD
value
;
HRESULT
hr
;
UINT
i
;
...
...
@@ -1141,6 +1142,12 @@ static void test_reset(void)
hr
=
IDirect3DDevice8_SetViewport
(
device1
,
&
vp
);
ok
(
SUCCEEDED
(
hr
),
"SetViewport failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_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
=
IDirect3DDevice8_SetRenderState
(
device1
,
D3DRS_LIGHTING
,
FALSE
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set render state, hr %#x.
\n
"
,
hr
);
memset
(
&
d3dpp
,
0
,
sizeof
(
d3dpp
));
d3dpp
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
d3dpp
.
Windowed
=
FALSE
;
...
...
@@ -1152,6 +1159,10 @@ static void test_reset(void)
hr
=
IDirect3DDevice8_TestCooperativeLevel
(
device1
);
ok
(
SUCCEEDED
(
hr
),
"TestCooperativeLevel failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_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
);
memset
(
&
vp
,
0
,
sizeof
(
vp
));
hr
=
IDirect3DDevice8_GetViewport
(
device1
,
&
vp
);
ok
(
SUCCEEDED
(
hr
),
"GetViewport failed, hr %#x.
\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