projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1d3751
)
Try another way on OS X.
author
Carl Hetherington
<cth@carlh.net>
Mon, 3 Jun 2019 10:37:08 +0000
(11:37 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 3 Jun 2019 10:37:08 +0000
(11:37 +0100)
src/wx/gl_video_view.cc
patch
|
blob
|
history
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 */
#ifdef DCPOMATIC_OSX
/* Enable vsync */
- NSOpenGLCPSwapInterval = 1;
+ long swapInterval = 1;
+ CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &swapInterval);
#endif
glGenTextures (1, &_id);
#endif
glGenTextures (1, &_id);