diff src/video/x11/SDL_x11gl.c @ 566:d6e7d7006062

Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers)
author Sam Lantinga <slouken@libsdl.org>
date Mon, 20 Jan 2003 00:25:28 +0000
parents 8a43e0cbf02f
children b0108e9dea53
line wrap: on
line diff
--- 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