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
3d64b44c
Commit
3d64b44c
authored
Jan 19, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Fix test_ApplyStateBlock() (Valgrind).
parent
93f1c49e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
device.c
dlls/d3d8/tests/device.c
+13
-14
No files found.
dlls/d3d8/tests/device.c
View file @
3d64b44c
...
...
@@ -2084,33 +2084,32 @@ static void test_ApplyStateBlock(void)
goto
cleanup
;
}
IDirect3DDevice8_CreateStateBlock
(
device
,
D3DSBT_ALL
,
&
token
);
ok
(
token
!=
0
,
"received null token
\n
"
);
IDirect3DDevice8_BeginStateBlock
(
device
);
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_ZENABLE
,
TRUE
);
IDirect3DDevice8_EndStateBlock
(
device
,
&
token
);
ok
(
token
,
"Received zero stateblock handle.
\n
"
);
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_ZENABLE
,
FALSE
);
hr
=
IDirect3DDevice8_GetRenderState
(
device
,
D3DRS_ZENABLE
,
&
received
);
ok
(
hr
==
D3D_OK
,
"Expected= D3D_OK, Got= %#x
\n
"
,
hr
);
ok
(
received
==
FALSE
,
"Expected = TRUE, received FALSE
\n
"
);
ok
(
hr
==
D3D_OK
,
"Expected D3D_OK, received %#x.
\n
"
,
hr
);
ok
(
!
received
,
"Expected = FALSE, received TRUE.
\n
"
);
IDirect3DDevice8_ApplyStateBlock
(
device
,
0
);
ok
(
hr
==
D3D_OK
,
"Expected
= D3D_OK, Got= %#x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Expected
D3D_OK, received %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_GetRenderState
(
device
,
D3DRS_ZENABLE
,
&
received
);
ok
(
hr
==
D3D_OK
,
"Expected= D3D_OK, Got= %#x
\n
"
,
hr
);
ok
(
received
==
FALSE
,
"Expected = TRUE, received FALSE
\n
"
);
ok
(
hr
==
D3D_OK
,
"Expected D3D_OK, received %#x.
\n
"
,
hr
);
ok
(
!
received
,
"Expected FALSE, received TRUE.
\n
"
);
IDirect3DDevice8_ApplyStateBlock
(
device
,
token
);
ok
(
hr
==
D3D_OK
,
"Expected
= D3D_OK, Got= %#x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Expected
D3D_OK, received %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_GetRenderState
(
device
,
D3DRS_ZENABLE
,
&
received
);
ok
(
hr
==
D3D_OK
,
"Expected= D3D_OK, Got= %#x
\n
"
,
hr
);
ok
(
received
==
TRUE
,
"Expected = TRUE, received FALSE
\n
"
);
ok
(
hr
==
D3D_OK
,
"Expected D3D_OK, received %#x.
\n
"
,
hr
);
ok
(
received
,
"Expected TRUE, received FALSE.
\n
"
);
cleanup:
if
(
device
)
IDirect3DDevice8_Release
(
device
);
if
(
d3d8
)
IDirect3D8_Release
(
d3d8
);
IDirect3DDevice8_DeleteStateBlock
(
device
,
token
);
IDirect3DDevice8_Release
(
device
);
cleanup:
if
(
d3d8
)
IDirect3D8_Release
(
d3d8
);
}
START_TEST
(
device
)
...
...
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