diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-03 11:33:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-03 11:33:59 +0100 |
| commit | c1d3751723c5413eea4b4602ec5ecff5c961038d (patch) | |
| tree | 72b1f18eb50b7605620059f1b2736d43fede4f6f /src | |
| parent | 12096b85415ae72468f2f0591366b8cf3668a604 (diff) | |
More GL build fixes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/gl_video_view.cc | 2 | ||||
| -rw-r--r-- | src/wx/wscript | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index e1a8523cf..cbd5e23cf 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -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(); diff --git a/src/wx/wscript b/src/wx/wscript index f355189ef..323a19a2b 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -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): |
