mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
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:
parent
07b0d91900
commit
bf1920a851
1 changed files with 4 additions and 1 deletions
|
@ -127,7 +127,10 @@ CheckMultiTextureExtensions (void)
|
||||||
("glMultiTexCoord2fARB");
|
("glMultiTexCoord2fARB");
|
||||||
qglActiveTexture = QFGL_ExtensionAddress ("glActiveTextureARB");
|
qglActiveTexture = QFGL_ExtensionAddress ("glActiveTextureARB");
|
||||||
gl_mtex_enum = GL_TEXTURE0_ARB;
|
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 {
|
} else {
|
||||||
Con_Printf ("disabled, not enough TMUs.\n");
|
Con_Printf ("disabled, not enough TMUs.\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue