mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
it seems glGetProcAddressARB is obsolete so check for glGetProcAddress first
This commit is contained in:
parent
5099c05605
commit
4f71b39827
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue