summaryrefslogtreecommitdiff
path: root/src/wx/gl_video_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-29 12:33:08 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-30 00:49:35 +0200
commita855b3030e511c130992dec8894e0d96fc811d97 (patch)
tree7e22531163d8313747fa6eb8ea743eed116a4956 /src/wx/gl_video_view.cc
parent9751270721fe4560eae0f53ac1e42ad0ebc80028 (diff)
Only support GLVideoView when building with wxWidgets >= 3.1.0.
Diffstat (limited to 'src/wx/gl_video_view.cc')
-rw-r--r--src/wx/gl_video_view.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc
index 04e0bac46..2b79bbd5e 100644
--- a/src/wx/gl_video_view.cc
+++ b/src/wx/gl_video_view.cc
@@ -24,6 +24,10 @@
#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