]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
log dds texture load failures (only happens with r_texture_dds_load 1)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 9 Jan 2010 08:38:20 +0000 (08:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 9 Jan 2010 08:38:20 +0000 (08:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9814 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 4318b5450cc1d7e311988a618d1ddb4efae4ccc0..cd4bc4a6dda710f4ec0600161fa02fc24606f22e 100644 (file)
@@ -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)
        {