From: divverent Date: Mon, 26 Sep 2011 04:56:31 +0000 (+0000) Subject: DDS: properly count miplevels for 1x1 textures too when DDS saving X-Git-Tag: xonotic-v0.6.0~163^2~183 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1822e28ce6572e787ed2c3b78de1619e231d2eff;p=xonotic%2Fdarkplaces.git 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 --- 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++) {