Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers)
authorSam Lantinga <slouken@libsdl.org>
Mon, 20 Jan 2003 00:25:28 +0000
changeset 566 d6e7d7006062
parent 565 7d7e19b59866
child 567 969fbd4dcd4e
Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers)
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