diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-03 23:48:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-03 23:48:29 +0100 |
| commit | 7c44dc0607d46d93e3b3e9b46d1e5ecd2bc64a99 (patch) | |
| tree | 440d71e2de5d11f106917271bc3e29f1a514c0b8 /src | |
| parent | d1e19450e051d70531a6c1f0973bfd6cfd64319b (diff) | |
More Windows hackery.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/gl_video_view.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 0e8e459d8..c0c71e965 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -70,8 +70,11 @@ GLVideoView::GLVideoView (FilmViewer* viewer, wxWindow *parent) #ifdef DCPOMATIC_WINDOWS if (_canvas->IsExtensionSupported("WGL_EXT_swap_control")) { /* Enable vsync */ - wglSwapIntervalEXT (1); - _vsync_enabled = true; + PFNWGLSWAPINTERVALEXTPROC swap = (PFNWGLSWAPINTERVALEXTPROC) wglGetProceAddress("wglSwapIntervalEXT"); + if (swap) { + swap (1); + _vsync_enabled = true; + } } #endif |
