mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
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:
parent
d247027954
commit
c8ab7d04ef
2 changed files with 7 additions and 9 deletions
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue