Try another way on OS X.
authorCarl Hetherington <cth@carlh.net>
Mon, 3 Jun 2019 10:37:08 +0000 (11:37 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Jun 2019 10:37:08 +0000 (11:37 +0100)
src/wx/gl_video_view.cc

index cbd5e23cff8ba62e9fc7ac2a44c6b6c3b8a606c8..da5cc31a06124686beb06f3c1ae75be6082f5eab 100644 (file)
@@ -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);