From 4358c54894741eef96bc8018a57fb2b0c059a4c1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 3 Jun 2019 11:37:08 +0100 Subject: [PATCH] Try another way on OS X. --- src/wx/gl_video_view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2