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
dee3418d
Commit
dee3418d
authored
Sep 01, 2013
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Sep 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Support WGL_EXT_swap_control_tear.
parent
e95e77a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
opengl.c
dlls/winex11.drv/opengl.c
+11
-1
No files found.
dlls/winex11.drv/opengl.c
View file @
dee3418d
...
...
@@ -281,6 +281,8 @@ static int use_render_texture_emulation = 1;
/* Selects the preferred GLX swap control method for use by wglSwapIntervalEXT */
static
enum
glx_swap_control_method
swap_control_method
=
GLX_SWAP_CONTROL_NONE
;
/* Set when GLX_EXT_swap_control_tear is supported, requires GLX_SWAP_CONTROL_EXT */
static
BOOL
has_swap_control_tear
=
FALSE
;
static
CRITICAL_SECTION
context_section
;
static
CRITICAL_SECTION_DEBUG
critsect_debug
=
...
...
@@ -2937,7 +2939,10 @@ static BOOL X11DRV_wglSwapIntervalEXT(int interval)
TRACE
(
"(%d)
\n
"
,
interval
);
if
(
interval
<
0
)
/* Without WGL/GLX_EXT_swap_control_tear a negative interval
* is invalid.
*/
if
(
interval
<
0
&&
!
has_swap_control_tear
)
{
SetLastError
(
ERROR_INVALID_DATA
);
return
FALSE
;
...
...
@@ -3135,6 +3140,11 @@ static void X11DRV_WineGL_LoadExtensions(void)
if
(
has_extension
(
WineGLInfo
.
glxExtensions
,
"GLX_EXT_swap_control"
))
{
swap_control_method
=
GLX_SWAP_CONTROL_EXT
;
if
(
has_extension
(
WineGLInfo
.
glxExtensions
,
"GLX_EXT_swap_control_tear"
))
{
register_extension
(
"WGL_EXT_swap_control_tear"
);
has_swap_control_tear
=
TRUE
;
}
}
else
if
(
has_extension
(
WineGLInfo
.
glxExtensions
,
"GLX_SGI_swap_control"
))
{
...
...
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