From e884846d5772e92f138599879a3f6506b061feed Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Sun, 11 Mar 2001 00:25:30 +0000 Subject: [PATCH] Tighten up checks for 3dfx in gl_draw.c and restore default gl_texturemode to old setting. --- qw/source/gl_draw.c | 3 ++- qw/source/gl_textures.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qw/source/gl_draw.c b/qw/source/gl_draw.c index 5b493100d..1ab74a528 100644 --- a/qw/source/gl_draw.c +++ b/qw/source/gl_draw.c @@ -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"); diff --git a/qw/source/gl_textures.c b/qw/source/gl_textures.c index 21a4ab995..71b22e3a5 100644 --- a/qw/source/gl_textures.c +++ b/qw/source/gl_textures.c @@ -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;