don't enable mtex if the required functions cannot be found. This shouldn't

normally happen, but is due to a currently broken QFGL_ExtensionAddress and
causes qf to seg when mtex is requested.
This commit is contained in:
Bill Currie 2001-09-23 03:18:58 +00:00
parent 07b0d91900
commit bf1920a851

View file

@ -127,7 +127,10 @@ CheckMultiTextureExtensions (void)
("glMultiTexCoord2fARB");
qglActiveTexture = QFGL_ExtensionAddress ("glActiveTextureARB");
gl_mtex_enum = GL_TEXTURE0_ARB;
gl_mtex_capable = true;
if (qglMultiTexCoord2f && gl_mtex_enum)
gl_mtex_capable = true;
else
Con_Printf ("disabled, could not find required functions\n");
} else {
Con_Printf ("disabled, not enough TMUs.\n");
}