1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-12 09:59:44 +00:00

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.
This commit is contained in:
wm4 2017-04-06 13:19:22 +02:00
parent 258d6b4a35
commit 4e6867c771

View File

@ -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"