X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fqgl.cpp;h=a352b8d0723cde907f5a69bf0914deb25e31fcc3;hb=83113718a4fb6a8e2318841f16f8a0b0eb85675c;hp=6cc9d7ca61b7be01e0fcfb20f2c849a04c3b808a;hpb=8b22a94541ec912f1722878eb054dc82ed909e04;p=xonotic%2Fnetradiant.git diff --git a/radiant/qgl.cpp b/radiant/qgl.cpp index 6cc9d7ca..a352b8d0 100644 --- a/radiant/qgl.cpp +++ b/radiant/qgl.cpp @@ -59,7 +59,6 @@ PROC ( WINAPI * qwglGetProcAddress )( LPCSTR ); #include #include -#include Bool ( *qglXQueryExtension )( Display *dpy, int *errorb, int *event ); void* ( *qglXGetProcAddressARB )( const GLubyte * procName ); @@ -555,7 +554,7 @@ int QGL_Init( OpenGLBinding& table ){ qwglGetProcAddress = wglGetProcAddress; #elif defined( XWINDOWS ) qglXGetProcAddressARB = (glXGetProcAddressARBProc)dlsym( RTLD_DEFAULT, "glXGetProcAddressARB" ); - if ( ( qglXQueryExtension == 0 ) || ( qglXQueryExtension( GDK_DISPLAY(),0,0 ) != True ) ) { + if ( ( qglXQueryExtension == 0 ) || ( qglXQueryExtension(XOpenDisplay(nullptr), 0, 0) != True ) ) { return 0; } #elif defined (__APPLE__)