mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers)
This commit is contained in:
parent
61e7ca331d
commit
e68974b2d1
|
|
@ -414,17 +414,9 @@ void *X11_GL_GetProcAddress(_THIS, const char* proc)
|
||||||
void* retval;
|
void* retval;
|
||||||
|
|
||||||
handle = this->gl_config.dll_handle;
|
handle = this->gl_config.dll_handle;
|
||||||
#if 0 /* This doesn't work correctly yet */
|
|
||||||
if ( this->gl_data->glXGetProcAddress ) {
|
if ( this->gl_data->glXGetProcAddress ) {
|
||||||
void *func, *func2;
|
return this->gl_data->glXGetProcAddress(proc);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#if defined(__OpenBSD__) && !defined(__ELF__)
|
#if defined(__OpenBSD__) && !defined(__ELF__)
|
||||||
#undef dlsym(x,y);
|
#undef dlsym(x,y);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user