From 925d51553e2b6f7f73f183ec4c9e2829ac81ed4b Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 17 Apr 2005 09:08:54 +0000 Subject: [PATCH] gl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number of 'wandering off the lightmap' issues (as well as similar issues with model skins, as they are not mipmapped) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5191 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl_textures.c b/gl_textures.c index 982ea4d3..4288f3da 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -552,7 +552,7 @@ void R_Textures_Frame (void) for (image = pool->imagechain;image;image = image->imagechain) { // only update already uploaded images - if (!(image->flags & GLTEXF_UPLOAD)) + if (!(image->flags & GLTEXF_UPLOAD) && (image->flags & TEXF_MIPMAP)) { qglGetIntegerv(gltexturetypebindingenums[image->texturetype], &oldbindtexnum); @@ -589,7 +589,7 @@ static void GL_SetupTextureParameters(int flags, int texturetype) CHECKGLERROR - if (gl_support_anisotropy) + if (gl_support_anisotropy && (flags & TEXF_MIPMAP)) { int aniso = bound(1, gl_texture_anisotropy.integer, gl_max_anisotropy); if (gl_texture_anisotropy.integer != aniso) -- 2.39.2