0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-04-21 17:01:11 +00:00

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
libs/video/targets

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