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
44c1747f
Commit
44c1747f
authored
Aug 07, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Aug 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check Occlusion query GL calls.
parent
02a8f744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
query.c
dlls/wined3d/query.c
+3
-0
No files found.
dlls/wined3d/query.c
View file @
44c1747f
...
...
@@ -159,6 +159,7 @@ static HRESULT WINAPI IWineD3DQueryImpl_GetData(IWineD3DQuery* iface, void* pDa
if
(
GL_SUPPORT
(
ARB_OCCLUSION_QUERY
))
{
GLint
samples
;
GL_EXTCALL
(
glGetQueryObjectivARB
(((
WineQueryOcclusionData
*
)
This
->
extendedData
)
->
queryId
,
GL_QUERY_RESULT_ARB
,
&
samples
));
checkGLcall
(
"glGetQueryObjectiv()
\n
"
);
TRACE
(
"(%p) : Returning %d samples.
\n
"
,
This
,
samples
);
*
data
=
samples
;
}
else
{
...
...
@@ -326,9 +327,11 @@ static HRESULT WINAPI IWineD3DQueryImpl_Issue(IWineD3DQuery* iface, DWORD dwIs
if
(
GL_SUPPORT
(
ARB_OCCLUSION_QUERY
))
{
if
(
dwIssueFlags
&
D3DISSUE_BEGIN
)
{
GL_EXTCALL
(
glBeginQueryARB
(
GL_SAMPLES_PASSED_ARB
,
((
WineQueryOcclusionData
*
)
This
->
extendedData
)
->
queryId
));
checkGLcall
(
"glBeginQuery()"
);
}
if
(
dwIssueFlags
&
D3DISSUE_END
)
{
GL_EXTCALL
(
glEndQueryARB
(
GL_SAMPLES_PASSED_ARB
));
checkGLcall
(
"glEndQuery()"
);
}
}
else
{
FIXME
(
"(%p) : Occlusion queries not supported
\n
"
,
This
);
...
...
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