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
9b043744
Commit
9b043744
authored
Jun 19, 2009
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Fix three incorrect logic conditions.
parent
94203b5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
query.c
dlls/d3d9/tests/query.c
+3
-3
No files found.
dlls/d3d9/tests/query.c
View file @
9b043744
...
...
@@ -105,7 +105,7 @@ static void test_query_support(IDirect3D9 *pD3d, HWND hwnd)
for
(
i
=
0
;
i
<
sizeof
(
queries
)
/
sizeof
(
queries
[
0
]);
i
++
)
{
hr
=
IDirect3DDevice9_CreateQuery
(
pDevice
,
queries
[
i
].
type
,
NULL
);
ok
(
hr
==
D3D_OK
||
D3DERR_NOTAVAILABLE
,
ok
(
hr
==
D3D_OK
||
hr
==
D3DERR_NOTAVAILABLE
,
"IDirect3DDevice9_CreateQuery returned unexpected return value %08x for query %s
\n
"
,
hr
,
queryName
(
queries
[
i
].
type
));
supported
=
(
hr
==
D3D_OK
?
TRUE
:
FALSE
);
...
...
@@ -119,7 +119,7 @@ static void test_query_support(IDirect3D9 *pD3d, HWND hwnd)
queryName
(
queries
[
i
].
type
));
hr
=
IDirect3DDevice9_CreateQuery
(
pDevice
,
queries
[
i
].
type
,
&
pQuery
);
ok
(
hr
==
D3D_OK
||
D3DERR_NOTAVAILABLE
,
ok
(
hr
==
D3D_OK
||
hr
==
D3DERR_NOTAVAILABLE
,
"IDirect3DDevice9_CreateQuery returned unexpected return value %08x for query %s
\n
"
,
hr
,
queryName
(
queries
[
i
].
type
));
ok
(
!
(
supported
&&
!
pQuery
),
"Query %s was claimed to be supported, but can't be created
\n
"
,
queryName
(
queries
[
i
].
type
));
ok
(
!
(
!
supported
&&
pQuery
),
"Query %s was claimed not to be supported, but can be created
\n
"
,
queryName
(
queries
[
i
].
type
));
...
...
@@ -163,7 +163,7 @@ static void test_occlusion_query_states(IDirect3D9 *pD3d, HWND hwnd)
}
hr
=
IDirect3DDevice9_CreateQuery
(
pDevice
,
D3DQUERYTYPE_OCCLUSION
,
&
pQuery
);
ok
(
hr
==
D3D_OK
||
D3DERR_NOTAVAILABLE
,
ok
(
hr
==
D3D_OK
||
hr
==
D3DERR_NOTAVAILABLE
,
"IDirect3DDevice9_CreateQuery returned unexpected return value %08x
\n
"
,
hr
);
if
(
!
pQuery
)
{
skip
(
"Occlusion queries not supported
\n
"
);
...
...
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