]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/extensions.cxx
Fix a problem with systems that don't define GLXPbufferSGIX or GLXFBConfigSGIX
[simgear.git] / simgear / screen / extensions.cxx
index 968b7e481289b24ba0f23611427ae020dc2d754e..9a6de53b243d3bea0d3ef116e03c2c54e8177b48 100644 (file)
@@ -110,6 +110,9 @@ void *SGGetGLProcAddress(const char *func) {
     if (libHandle == NULL)
         libHandle = dlopen("libGL.so", RTLD_LAZY);
 
+    if (libHandle == NULL)
+        libHandle = dlopen("libGL.so.1", RTLD_LAZY);
+
     if (libHandle != NULL) {
         fptr = dlsym(libHandle, func);