# HG changeset patch # User Sam Lantinga # Date 1043022328 0 # Node ID d6e7d70060629fc79636ba4a136e532673ef6a41 # Parent 7d7e19b59866a15a180940b992e293a96b8e5888 Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers) diff -r 7d7e19b59866 -r d6e7d7006062 src/video/x11/SDL_x11gl.c --- a/src/video/x11/SDL_x11gl.c Mon Jan 20 00:17:01 2003 +0000 +++ b/src/video/x11/SDL_x11gl.c Mon Jan 20 00:25:28 2003 +0000 @@ -414,17 +414,9 @@ void* retval; handle = this->gl_config.dll_handle; -#if 0 /* This doesn't work correctly yet */ if ( this->gl_data->glXGetProcAddress ) { - void *func, *func2; - func = this->gl_data->glXGetProcAddress(proc); - func2 = dlsym(handle, proc); - if ( func != func2 ) { -fprintf(stderr, "glXGetProcAddress returned %p and dlsym returned %p for %s\n", func, func2, proc); - } - return this->gl_data->glXGetProcAddress(proc); + return this->gl_data->glXGetProcAddress(proc); } -#endif #if defined(__OpenBSD__) && !defined(__ELF__) #undef dlsym(x,y); #endif