]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/qgl.cpp
portability improvements
[xonotic/netradiant.git] / radiant / qgl.cpp
index c1e6b23acd3fab8d7a22188c191ffb3dbbc6b2c9..5a6477d1d2b46a37b94a55b23e3ee30fae27fd19 100644 (file)
@@ -657,7 +657,7 @@ int QGL_Init(OpenGLBinding& table)
   qglXUseXFont                 = glXUseXFont;
 //  qglXGetProcAddressARB        = glXGetProcAddressARB; // Utah-GLX fix
 
-  qglXGetProcAddressARB = (glXGetProcAddressARBProc)dlsym(NULL, "glXGetProcAddressARB"); 
+  qglXGetProcAddressARB = (glXGetProcAddressARBProc)dlsym(RTLD_DEFAULT, "glXGetProcAddressARB"); 
   if ((qglXQueryExtension == 0) || (qglXQueryExtension(GDK_DISPLAY(),0,0) != True))
     return 0;
 #else