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
9e19cb07
Commit
9e19cb07
authored
May 23, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: AMD drivers return D3D_OK when reading data from an unfinished query.
parent
813c2737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
query.c
dlls/d3d9/tests/query.c
+8
-2
No files found.
dlls/d3d9/tests/query.c
View file @
9e19cb07
...
...
@@ -190,10 +190,16 @@ static void test_occlusion_query_states(IDirect3D9 *pD3d, HWND hwnd)
hr
=
IDirect3DQuery9_Issue
(
pQuery
,
D3DISSUE_BEGIN
);
ok
(
hr
==
D3D_OK
,
"IDirect3DQuery9_Issue(D3DQUERY_BEGIN) on a started query returned %08x
\n
"
,
hr
);
*
((
DWORD
*
)
data
)
=
0x12345678
;
hr
=
IDirect3DQuery9_GetData
(
pQuery
,
NULL
,
0
,
D3DGETDATA_FLUSH
);
ok
(
hr
==
S_FALSE
,
"IDirect3DQuery9_GetData(NULL) on a started query returned %08x
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
||
hr
==
D3D_OK
,
"IDirect3DQuery9_GetData(NULL) on a started query returned %08x
\n
"
,
hr
);
hr
=
IDirect3DQuery9_GetData
(
pQuery
,
data
,
IDirect3DQuery9_GetDataSize
(
pQuery
),
D3DGETDATA_FLUSH
);
ok
(
hr
==
S_FALSE
,
"IDirect3DQuery9_GetData on a started query returned %08x
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
||
hr
==
D3D_OK
,
"IDirect3DQuery9_GetData on a started query returned %08x
\n
"
,
hr
);
if
(
hr
==
D3D_OK
)
{
DWORD
value
=
*
((
DWORD
*
)
data
);
ok
(
value
==
0
,
"The unfinished query returned %u, expected 0
\n
"
,
value
);
}
hr
=
IDirect3DDevice9_SetFVF
(
pDevice
,
D3DFVF_XYZ
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetFVF returned %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