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:
parent
258d6b4a35
commit
4e6867c771
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user