summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-06 13:19:22 +0200
committerwm4 <wm4@nowhere>2017-04-06 13:19:59 +0200
commit4e6867c771a53767f9293517af8475e9d7845695 (patch)
tree8a3e4b5e1b47a13c88f7b22a75383d0ce58b4e30
parent258d6b4a35e4953fb693a7e1313378bffa659b7e (diff)
downloadmpv-4e6867c771a53767f9293517af8475e9d7845695.tar.bz2
mpv-4e6867c771a53767f9293517af8475e9d7845695.tar.xz
vo_opengl: fix windows build if GLES3 is detected
With the recent GLES3 header detection, and if ANGLE is in the search path, the ANGLE headers will be used over the desktop GL ones. It appears the ANGLE headers do not include <windows.h>, which leads to the dxinterop code to fail building. Oops. Fix this by including <windows.h> is dxinterop is compiled in.
-rw-r--r--video/out/opengl/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h
index b3108d0676..258e6b30c0 100644
--- a/video/out/opengl/common.h
+++ b/video/out/opengl/common.h
@@ -46,6 +46,10 @@
#include <GL/glext.h>
#endif
+#if HAVE_GL_WIN32
+#include <windows.h>
+#endif
+
#define MP_GET_GL_WORKAROUNDS
#include "header_fixes.h"