diff --git a/configure.ac b/configure.ac index 0cd304c09..35f1f1650 100644 --- a/configure.ac +++ b/configure.ac @@ -1403,6 +1403,8 @@ AC_SUBST(HAVE_SGL) AC_SUBST(HAVE_SVGA) AC_SUBST(HAVE_X) +AC_DEFINE(HAVE_GLX) + if test -n "$CL_TARGETS"; then CD_TARGETS="libQFcd.la" SND_TARGETS="libQFsound.la" diff --git a/libs/video/targets/qfgl_ext.c b/libs/video/targets/qfgl_ext.c index 6964703e1..1301932f8 100644 --- a/libs/video/targets/qfgl_ext.c +++ b/libs/video/targets/qfgl_ext.c @@ -134,19 +134,15 @@ QFGL_ExtensionAddress (const char *name) #endif if (glProcAddress_present && !glGetProcAddress) { - if (QFGL_ExtensionPresent ("GLX_ARB_get_proc_address")) { #if defined(HAVE_GLX) - glGetProcAddress = - QFGL_ProcAddress (handle, "glXGetProcAddressARB", false); + glGetProcAddress = + QFGL_ProcAddress (handle, "glXGetProcAddressARB", false); #elif defined (_WIN32) - glGetProcAddress = - QFGL_ProcAddress (handle, "wglGetProcAddress", false); + glGetProcAddress = + QFGL_ProcAddress (handle, "wglGetProcAddress", false); #endif - if (!glGetProcAddress) - glProcAddress_present = false; - } else { + if (!glGetProcAddress) glProcAddress_present = false; - } } if (name && glProcAddress_present)