More GL build fixes.
authorCarl Hetherington <cth@carlh.net>
Mon, 3 Jun 2019 10:33:59 +0000 (11:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Jun 2019 10:33:59 +0000 (11:33 +0100)
src/wx/gl_video_view.cc
src/wx/wscript

index e1a8523cf4350167ba9fca72aabef37e06f47074..cbd5e23cff8ba62e9fc7ac2a44c6b6c3b8a606c8 100644 (file)
@@ -47,7 +47,7 @@ GLVideoView::GLVideoView (FilmViewer* viewer, wxWindow *parent)
        _canvas->Bind (wxEVT_PAINT, boost::bind(&GLVideoView::paint, this));
        _canvas->Bind (wxEVT_SIZE, boost::bind(boost::ref(Sized)));
 
-#ifdef DCPOMATIC_LINUX
+#if defined(DCPOMATIC_LINUX) && defined(DCPOMATIC_HAVE_GLX_SWAP_INTERVAL_EXT)
        if (_canvas->IsExtensionSupported("GLX_EXT_swap_control")) {
                /* Enable vsync */
                Display* dpy = wxGetX11Display();
index f355189ef36b4ec680cf59eb591704bb828f1e77..323a19a2b4afb2c297e19fc84e60dedc87e4fa56 100644 (file)
@@ -271,7 +271,8 @@ def configure(conf):
                        msg='Checking for glXSwapIntervalEXT',
                        okmsg='yes',
                        uselib='GL WXWIDGETS',
-                       define_name='DCPOMATIC_HAVE_GLX_SWAP_INTERVAL_EXT')
+                       define_name='DCPOMATIC_HAVE_GLX_SWAP_INTERVAL_EXT',
+                       mandatory=False)
 
 
 def build(bld):