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
61f8ef79
Commit
61f8ef79
authored
Feb 09, 2006
by
Christoph Frick
Committed by
Alexandre Julliard
Feb 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Better warn/fixme for query handling.
parent
32affb8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
device.c
dlls/wined3d/device.c
+8
-9
No files found.
dlls/wined3d/device.c
View file @
61f8ef79
...
...
@@ -1095,8 +1095,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateQuery(IWineD3DDevice *iface, WINED3DQUER
if
(
NULL
==
ppQuery
)
{
/* Just a check to see if we support this type of query */
HRESULT
hr
=
D3DERR_NOTAVAILABLE
;
/* Lie and say everything is good (we can return ok fake data from a stub) */
switch
(
Type
)
{
case
WINED3DQUERYTYPE_OCCLUSION
:
TRACE
(
"(%p) occlusion query
\n
"
,
This
);
if
(
GL_SUPPORT
(
ARB_OCCLUSION_QUERY
)
||
GL_SUPPORT
(
NV_OCCLUSION_QUERY
))
hr
=
D3D_OK
;
else
WARN
(
"Unsupported in local OpenGL implementation: ARB_OCCLUSION_QUERY/NV_OCCLUSION_QUERY
\n
"
);
break
;
case
WINED3DQUERYTYPE_VCACHE
:
case
WINED3DQUERYTYPE_RESOURCEMANAGER
:
case
WINED3DQUERYTYPE_VERTEXSTATS
:
...
...
@@ -1110,16 +1116,9 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateQuery(IWineD3DDevice *iface, WINED3DQUER
case
WINED3DQUERYTYPE_PIXELTIMINGS
:
case
WINED3DQUERYTYPE_BANDWIDTHTIMINGS
:
case
WINED3DQUERYTYPE_CACHEUTILIZATION
:
break
;
case
WINED3DQUERYTYPE_OCCLUSION
:
TRACE
(
"(%p) occlusion query
\n
"
,
This
);
if
(
GL_SUPPORT
(
ARB_OCCLUSION_QUERY
)
||
GL_SUPPORT
(
NV_OCCLUSION_QUERY
))
hr
=
D3D_OK
;
break
;
default:
FIXME
(
"(%p) Unhandled query type %d
\n
"
,
This
,
Type
);
FIXME
(
"(%p) Unhandled query type %d
\n
"
,
This
,
Type
);
}
FIXME
(
"(%p) : Stub request for query type %d returned %ld
\n
"
,
This
,
Type
,
hr
);
return
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