From ff82461483458d38fec389d6762ec07bdc91d116 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Sat, 3 Feb 2001 06:57:43 +0000 Subject: [PATCH] Fix mipmap method selection bug in GL_Upload8_EXT. --- source/gl_draw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/gl_draw.c b/source/gl_draw.c index b2cd356..d46d5eb 100644 --- a/source/gl_draw.c +++ b/source/gl_draw.c @@ -1102,7 +1102,10 @@ GL_Upload8_EXT (byte * data, int width, int height, qboolean mipmap, glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, gl_filter_max); } else { glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, gl_filter_max); - glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, gl_filter_max); + if (gl_picmip->int_val) + glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + else + glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, gl_filter_max); } free (scaled);