Only support GLVideoView when building with wxWidgets >= 3.1.0.
[dcpomatic.git] / src / wx / gl_video_view.cc
index 04e0bac46ec373e3b731768fa00b949f5290505a..2b79bbd5e71074b107312323cbd2a3835060da99 100644 (file)
 #endif
 
 #include "gl_video_view.h"
+
+/* This will only build on an new-enough wxWidgets: see the comment in gl_video_view.h */
+#if wxCHECK_VERSION(3,1,0)
+
 #include "film_viewer.h"
 #include "wx_util.h"
 #include "lib/image.h"
@@ -830,3 +834,4 @@ Texture::set (shared_ptr<const Image> image)
        }
 }
 
+#endif