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
967a49fc
Commit
967a49fc
authored
Jul 02, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Jul 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Force swap interval to 0 for single-buffered contexts to avoid vsync'ed flushes.
parent
d30705bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
opengl.c
dlls/winemac.drv/opengl.c
+11
-3
No files found.
dlls/winemac.drv/opengl.c
View file @
967a49fc
...
...
@@ -2901,7 +2901,9 @@ static BOOL macdrv_wglSwapIntervalEXT(int interval)
return
FALSE
;
}
if
(
interval
>
1
)
if
(
!
pixel_formats
[
context
->
format
-
1
].
double_buffer
)
interval
=
0
;
else
if
(
interval
>
1
)
interval
=
1
;
value
=
interval
;
...
...
@@ -3238,8 +3240,14 @@ static BOOL create_context(struct wgl_context *context, CGLContextObj share)
}
/* According to the WGL_EXT_swap_control docs, the default swap interval for
a context is 1. CGL contexts default to 0, so we need to set it. */
swap_interval
=
1
;
a context is 1. CGL contexts default to 0, so we need to set it. This
only make sense for double-buffered contexts, though. In theory, for
single-buffered contexts, there's no such thing as a swap. But OS X
will synchronize flushes of single-buffered contexts if this is set. */
if
(
pf
->
double_buffer
)
swap_interval
=
1
;
else
swap_interval
=
0
;
err
=
CGLSetParameter
(
context
->
cglcontext
,
kCGLCPSwapInterval
,
(
GLint
*
)
&
swap_interval
);
if
(
err
!=
kCGLNoError
)
WARN
(
"CGLSetParameter(kCGLCPSwapInterval) failed with error %d %s; leaving un-vsynced
\n
"
,
err
,
CGLErrorString
(
err
));
...
...
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