From: Carl Hetherington Date: Mon, 3 Jun 2019 10:37:08 +0000 (+0100) Subject: Try another way on OS X. X-Git-Tag: v2.15.6~11 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=4358c54894741eef96bc8018a57fb2b0c059a4c1 Try another way on OS X. --- diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index cbd5e23cf..da5cc31a0 100644 --- 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);