summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-03 13:02:10 +0100
committerwm4 <wm4@nowhere>2013-03-03 15:36:56 +0100
commit979ce46c6403e70bc90348aba260c825e5189b2c (patch)
tree3d8c51cbcac6526369ad12a6cdc06a414a2b6385 /video/out/gl_common.h
parentca893689fefdac74338b41aa21fbc601ae102ff6 (diff)
downloadmpv-979ce46c6403e70bc90348aba260c825e5189b2c.tar.bz2
mpv-979ce46c6403e70bc90348aba260c825e5189b2c.tar.xz
gl_common: get rid of symbol redefinition warnings with recent Mesa
Apparently newer Mesa versions changed their <GL/glx.h> header, and unconditionally define GLX_CONTEXT_MAJOR_VERSION_ARB and others. This clashed with gl_header_fixes.h, a header which quarantines bad hacks to make compilation possible on systems with outdated GL headers. Specifically, our header was included before glx.h, so the hacks were always active, and somehow Mesa's glx.h used to deal with this by not redefining existing identifiers. Fix the gl_header_fixes.h logic so the hacks are checked after including glx.h.
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r--video/out/gl_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h
index 415e31e941..0150e9319c 100644
--- a/video/out/gl_common.h
+++ b/video/out/gl_common.h
@@ -47,6 +47,7 @@
#include <GL/glext.h>
#endif
+#define MP_GET_GL_WORKAROUNDS
#include "video/out/gl_header_fixes.h"
struct GL;