summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--options/options.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c
index b711156c18..0bb36ad3fc 100644
--- a/options/options.c
+++ b/options/options.c
@@ -40,7 +40,6 @@
#include "stream/stream.h"
#include "video/csputils.h"
#include "video/hwdec.h"
-#include "video/out/opengl/hwdec.h"
#include "video/image_writer.h"
#include "sub/osd.h"
#include "audio/filter/af.h"
@@ -53,6 +52,10 @@
#include "video/out/drm_common.h"
#endif
+#if HAVE_GL
+#include "video/out/opengl/hwdec.h"
+#endif
+
extern const char mp_help_text[];
static void print_version(struct mp_log *log)