diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-03 11:37:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-03 11:37:08 +0100 |
| commit | 4358c54894741eef96bc8018a57fb2b0c059a4c1 (patch) | |
| tree | 5b10f2b0544dd194eea178853d533fdd7347410b /src | |
| parent | c1d3751723c5413eea4b4602ec5ecff5c961038d (diff) | |
Try another way on OS X.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/gl_video_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
