From 865f3cc0efb6bc9663ab533ff808098c779a0964 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 11 Jul 2012 22:20:02 -0400 Subject: [PATCH] Patched to compile on FreeBSD 8.2. --- include/SDL_opengl.h | 4 ++++ src/video/x11/SDL_x11opengl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/SDL_opengl.h b/include/SDL_opengl.h index 10474c981..e1584ae8a 100644 --- a/include/SDL_opengl.h +++ b/include/SDL_opengl.h @@ -44,6 +44,10 @@ #define NO_SDL_GLEXT 1 #endif +#ifdef __FreeBSD__ /* !!! FIXME: temp compiler warning fix... */ +#define NO_SDL_GLEXT 1 +#endif + #ifdef __glext_h_ /* Someone has already included glext.h */ #define NO_SDL_GLEXT diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index 22e6f672d..1f62fd1a4 100755 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -75,6 +75,7 @@ typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy, Bool direct, const int *attrib_list); +#endif #ifndef GLX_ARB_create_context_profile #define GLX_ARB_create_context_profile @@ -90,7 +91,6 @@ typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy, #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 #endif -#endif #ifndef GLX_EXT_create_context_es2_profile #define GLX_EXT_create_context_es2_profile