Skip to content

Commit

Permalink
Enable the glXGetProcAddressARB code (fixes problems with NVidia driv…
Browse files Browse the repository at this point in the history
…ers)
  • Loading branch information
slouken committed Jan 20, 2003
1 parent 34342b6 commit 616263f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/video/x11/SDL_x11gl.c
Expand Up @@ -414,17 +414,9 @@ void *X11_GL_GetProcAddress(_THIS, const char* proc)
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
Expand Down

0 comments on commit 616263f

Please sign in to comment.