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
6fe9e0f0
Commit
6fe9e0f0
authored
Apr 23, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Disable occlusion query support if the implementation has 0 counter bits.
parent
5206e512
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
directx.c
dlls/wined3d/directx.c
+9
-0
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+2
-0
No files found.
dlls/wined3d/directx.c
View file @
6fe9e0f0
...
...
@@ -2809,6 +2809,15 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter)
* we never render to sRGB surfaces). */
gl_info
->
supported
[
ARB_FRAMEBUFFER_SRGB
]
=
FALSE
;
}
if
(
gl_info
->
supported
[
ARB_OCCLUSION_QUERY
])
{
GLint
counter_bits
;
GL_EXTCALL
(
glGetQueryivARB
(
GL_SAMPLES_PASSED_ARB
,
GL_QUERY_COUNTER_BITS_ARB
,
&
counter_bits
));
TRACE
(
"Occlusion query counter has %d bits.
\n
"
,
counter_bits
);
if
(
!
counter_bits
)
gl_info
->
supported
[
ARB_OCCLUSION_QUERY
]
=
FALSE
;
}
wined3d_adapter_init_limits
(
gl_info
);
...
...
dlls/wined3d/wined3d_gl.h
View file @
6fe9e0f0
...
...
@@ -251,8 +251,10 @@ enum wined3d_gl_extension
USE_GL_FUNC(glDeleteQueriesARB) \
USE_GL_FUNC(glEndQueryARB) \
USE_GL_FUNC(glGenQueriesARB) \
USE_GL_FUNC(glGetQueryivARB) \
USE_GL_FUNC(glGetQueryObjectivARB) \
USE_GL_FUNC(glGetQueryObjectuivARB) \
USE_GL_FUNC(glIsQueryARB) \
/* GL_ARB_point_parameters */
\
USE_GL_FUNC(glPointParameterfARB) \
USE_GL_FUNC(glPointParameterfvARB) \
...
...
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