diff options
author | wm4 <wm4@nowhere> | 2017-04-06 13:19:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-06 13:19:59 +0200 |
commit | 4e6867c771a53767f9293517af8475e9d7845695 (patch) | |
tree | 8a3e4b5e1b47a13c88f7b22a75383d0ce58b4e30 /video/out | |
parent | 258d6b4a35e4953fb693a7e1313378bffa659b7e (diff) | |
download | mpv-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.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/common.h | 4 |
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" |