From 7c44dc0607d46d93e3b3e9b46d1e5ecd2bc64a99 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 3 Jun 2019 23:48:29 +0100 Subject: [PATCH] More Windows hackery. --- src/wx/gl_video_view.cc | 7 +++++-- 1 file 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 -- 2.30.2