Remove special handling for the WGL extension list. It was broken, and

nobody on win32 fixed it. This made _all_ Windows GL binaries not work.
This commit is contained in:
Jeff Teunissen 2001-01-23 04:06:35 +00:00
parent 6bea8babbe
commit d6241c11aa

View file

@ -104,44 +104,11 @@ QFGL_ExtensionPresent (const char *name)
{
static const GLubyte *gl_extensions = NULL;
#ifdef _WIN32
static const GLubyte *wgl_extensions = NULL;
static qboolean extensionFunc_present = true;
static QF_wglGetExtensionsStringEXT extensionFunc = NULL;
#endif
if (!gl_extensions) { // get and save GL extension list
gl_extensions = glGetString (GL_EXTENSIONS);
}
#ifdef _WIN32
if (!wgl_extensions) { // get and save WGL extension list
if (extensionFunc_present && !extensionFunc) {
if (!
(QFGL_ParseExtensionList
(gl_extensions, "WGL_EXT_extensions_string"))) {
extensionFunc_present = false;
} else {
extensionFunc =
QFGL_ExtensionAddress ("WGL_EXT_extension_string");
}
}
if (extensionFunc_present)
wgl_extensions = extensionFunc ();
else
wgl_extensions = "";
}
if (QFGL_ParseExtensionList (gl_extensions, name))
return true;
if (QFGL_ParseExtensionList (wgl_extensions, name))
return true;
return false;
#else
return QFGL_ParseExtensionList (gl_extensions, name);
#endif
}