summaryrefslogtreecommitdiffstats
path: root/video/out/gl_header_fixes.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_header_fixes.h')
-rw-r--r--video/out/gl_header_fixes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/video/out/gl_header_fixes.h b/video/out/gl_header_fixes.h
index 41a3aabcd3..7f859defbf 100644
--- a/video/out/gl_header_fixes.h
+++ b/video/out/gl_header_fixes.h
@@ -21,6 +21,8 @@
* version 2.1 of the License, or (at your option) any later version.
*/
+#ifdef MP_GET_GL_WORKAROUNDS
+
// workaround for some gl.h headers
#ifndef GLAPIENTRY
#ifdef APIENTRY
@@ -244,6 +246,12 @@
#endif
#endif
+#undef MP_GET_GL_WORKAROUNDS
+
+#endif
+
+#ifdef MP_GET_GLX_WORKAROUNDS
+
// FreeBSD 10.0-CURRENT lacks the GLX_ARB_create_context extension completely
#ifndef GLX_CONTEXT_MAJOR_VERSION_ARB
#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
@@ -258,3 +266,7 @@
#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
#endif
+
+#undef MP_GET_GLX_WORKAROUNDS
+
+#endif