From 1822e28ce6572e787ed2c3b78de1619e231d2eff Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 26 Sep 2011 04:56:31 +0000 Subject: [PATCH] DDS: properly count miplevels for 1x1 textures too when DDS saving git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11369 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_textures.c b/gl_textures.c index e7d44437..00a9c33d 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -1941,7 +1941,7 @@ int R_SaveTextureDDSFile(rtexture_t *rt, const char *filename, qboolean skipunco mipinfo[0][0] = glt->tilewidth; mipinfo[0][1] = glt->tileheight; mipmaps = 1; - if (glt->flags & TEXF_MIPMAP) + if ((glt->flags & TEXF_MIPMAP) && !(glt->tilewidth == 1 && glt->tilewidth == 1)) { for (mip = 1;mip < 16;mip++) { -- 2.39.2