mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 13:32:01 +00:00
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:
parent
6bea8babbe
commit
d6241c11aa
1 changed files with 1 additions and 34 deletions
|
@ -104,44 +104,11 @@ QFGL_ExtensionPresent (const char *name)
|
||||||
{
|
{
|
||||||
static const GLubyte *gl_extensions = NULL;
|
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
|
if (!gl_extensions) { // get and save GL extension list
|
||||||
gl_extensions = glGetString (GL_EXTENSIONS);
|
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);
|
return QFGL_ParseExtensionList (gl_extensions, name);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue