projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Try another way on OS X.
[dcpomatic.git]
/
src
/
wx
/
gl_video_view.cc
diff --git
a/src/wx/gl_video_view.cc
b/src/wx/gl_video_view.cc
index cbd5e23cff8ba62e9fc7ac2a44c6b6c3b8a606c8..da5cc31a06124686beb06f3c1ae75be6082f5eab 100644
(file)
--- a/
src/wx/gl_video_view.cc
+++ b/
src/wx/gl_video_view.cc
@@
-65,7
+65,8
@@
GLVideoView::GLVideoView (FilmViewer* viewer, wxWindow *parent)
#ifdef DCPOMATIC_OSX
/* Enable vsync */
- NSOpenGLCPSwapInterval = 1;
+ long swapInterval = 1;
+ CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &swapInterval);
#endif
glGenTextures (1, &_id);