Tighten up checks for 3dfx in gl_draw.c and restore default gl_texturemode to old setting.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-03-11 00:25:30 +00:00
parent fd3eafac77
commit e884846d57
2 changed files with 3 additions and 2 deletions

View File

@ -259,7 +259,8 @@ Draw_Init (void)
// LordHavoc: 3DFX's dithering has terrible artifacts with lightmode 1
// 3dfx can only handle 256 wide textures
if (!strncasecmp ((char *) gl_renderer, "3dfx", 4))
if (!strncasecmp ((char *) gl_renderer, "3dfx", 4) ||
!strngcasecmp ((char *) gl_renderer, "Mesa Glide", 10))
{
Cvar_Set (gl_max_size, "256");
Cvar_Set (gl_lightmode, "0");

View File

@ -127,7 +127,7 @@ static glformat_t formats[] = {
{"GL_RGBA16", GL_RGBA16}
};
int gl_filter_min = GL_LINEAR_MIPMAP_LINEAR, gl_filter_max = GL_LINEAR;
int gl_filter_min = GL_LINEAR_MIPMAP_NEAREST, gl_filter_max = GL_LINEAR;
int gl_alpha_format = 4, gl_lightmap_format = 4, gl_solid_format = 3;