From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Sat, 9 Jan 2010 08:38:20 +0000 (+0000)
Subject: log dds texture load failures (only happens with r_texture_dds_load 1)
X-Git-Tag: xonotic-v0.1.0preview~230^2~653
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=214bdbea305237a14ff890f6a84b9197837f93b8;p=xonotic%2Fdarkplaces.git

log dds texture load failures (only happens with r_texture_dds_load 1)


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9814 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/gl_textures.c b/gl_textures.c
index 4318b545..cd4bc4a6 100644
--- a/gl_textures.c
+++ b/gl_textures.c
@@ -1219,7 +1219,10 @@ rtexture_t *R_LoadTextureDDSFile(rtexturepool_t *rtexturepool, const char *filen
 	ddssize = ddsfilesize;
 
 	if (!dds)
+	{
+		Log_Printf("ddstexturefailures.log", "%s\n", filename);
 		return NULL; // not found
+	}
 
 	if (ddsfilesize <= 128 || memcmp(dds, "DDS ", 4) || ddssize < (unsigned int)BuffLittleLong(dds+4) || BuffLittleLong(dds+76) != 32)
 	{