fix two bugs with glx extension checking: HAVE_GLX wasn't getting into

config.h and GLX_ARB_get_proc_address is not (any longer?) defined by mesa.
This commit is contained in:
Bill Currie 2001-09-23 03:41:05 +00:00
parent d247027954
commit c8ab7d04ef
2 changed files with 7 additions and 9 deletions

View file

@ -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"

View file

@ -134,7 +134,6 @@ 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);
@ -144,9 +143,6 @@ QFGL_ExtensionAddress (const char *name)
#endif
if (!glGetProcAddress)
glProcAddress_present = false;
} else {
glProcAddress_present = false;
}
}
if (name && glProcAddress_present)