Commit 879224b6 authored by Sam Lantinga's avatar Sam Lantinga

Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40567
parent f8edfec2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment