summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/context_x11.c')
-rw-r--r--video/out/opengl/context_x11.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/video/out/opengl/context_x11.c b/video/out/opengl/context_x11.c
index c71e0b327a..4d8dac1ea5 100644
--- a/video/out/opengl/context_x11.c
+++ b/video/out/opengl/context_x11.c
@@ -18,8 +18,24 @@
#include <X11/Xlib.h>
#include <GL/glx.h>
-#define MP_GET_GLX_WORKAROUNDS
-#include "header_fixes.h"
+// 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
+#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
+#define GLX_CONTEXT_FLAGS_ARB 0x2094
+#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
+#ifndef __APPLE__
+// These are respectively 0x00000001 and 0x00000002 on OSX
+#define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001
+#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
+#endif
+#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
+#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
+#endif
+// GLX_EXT_create_context_es2_profile
+#ifndef GLX_CONTEXT_ES2_PROFILE_BIT_EXT
+#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
+#endif
#include "video/out/x11_common.h"
#include "context.h"