it seems glGetProcAddressARB is obsolete so check for glGetProcAddress first

This commit is contained in:
Bill Currie 2004-05-06 07:13:18 +00:00
parent 5099c05605
commit 4f71b39827
2 changed files with 6 additions and 2 deletions

View file

@ -128,7 +128,9 @@ QFGL_LoadLibrary (void)
Sys_Error ("Couldn't load OpenGL library %s: %s", gl_driver->string,
dlerror ());
}
glGetProcAddress = dlsym (handle, "glXGetProcAddressARB");
glGetProcAddress = dlsym (handle, "glXGetProcAddress");
if (!glGetProcAddress)
glGetProcAddress = dlsym (handle, "glXGetProcAddressARB");
return handle;
}

View file

@ -123,7 +123,9 @@ QFGL_LoadLibrary (void)
Sys_Error ("Couldn't load OpenGL library %s: %s", gl_driver->string,
dlerror ());
}
glGetProcAddress = dlsym (handle, "glXGetProcAddressARB");
glGetProcAddress = dlsym (handle, "glXGetProcAddress");
if (!glGetProcAddress)
glGetProcAddress = dlsym (handle, "glXGetProcAddressARB");
return handle;
}
#else