comparison src/video/x11/SDL_x11gl_c.h @ 110:7edee9f0f2cc

SDL GL dynamic loading fix for OpenBSD
author Sam Lantinga <slouken@lokigames.com>
date Sat, 14 Jul 2001 19:11:26 +0000
parents 74212992fb08
children e8157fcb3114
comparison
equal deleted inserted replaced
109:5a9c36a45db1 110:7edee9f0f2cc
26 #endif 26 #endif
27 27
28 #ifdef HAVE_OPENGL 28 #ifdef HAVE_OPENGL
29 #include <GL/glx.h> 29 #include <GL/glx.h>
30 #include <dlfcn.h> 30 #include <dlfcn.h>
31 #if defined(__OpenBSD__) && !defined(__ELF__)
32 #define dlsym(x,y) dlsym(x, "_" y)
33 #endif
31 #endif 34 #endif
32 #include "SDL_sysvideo.h" 35 #include "SDL_sysvideo.h"
33 36
34 struct SDL_PrivateGLData { 37 struct SDL_PrivateGLData {
35 int gl_active; /* to stop switching drivers while we have a valid context */ 38 int gl_active; /* to stop switching drivers while we have a valid context */