From 842402c6ca61efcb9d681e86e70d9136bd8d2bf7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 19 Oct 2012 18:05:09 +0200 Subject: gl_common: hack to support compilation on FreeBSD It seems FreeBSD 10.0-CURRENT as of this time doesn't include the GLX extension and header file definitions for creating OpenGL 3.x core contexts. Dump some more hacks into gl_header_fixes.h. --- libvo/gl_header_fixes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libvo/gl_header_fixes.h b/libvo/gl_header_fixes.h index ebdbbb35b4..d149a9970a 100644 --- a/libvo/gl_header_fixes.h +++ b/libvo/gl_header_fixes.h @@ -243,3 +243,15 @@ #define GL_FRAMEBUFFER_SRGB 0x8DB9 #endif #endif + +// 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 +#define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 +#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 +#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 +#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 +#endif -- cgit v1.2.3