]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
improved shadowmap side culling
[xonotic/darkplaces.git] / image.c
diff --git a/image.c b/image.c
index a99176e5420a92e7bfeccfeb305a43e3fe0da78d..d5123408c96141dd56849b2e5b29bc0321c53407 100644 (file)
--- a/image.c
+++ b/image.c
@@ -849,6 +849,10 @@ unsigned char *loadimagepixelsbgra (const char *filename, qboolean complain, qbo
                        Con_Printf(format == firstformat ? "\"%s\"" : (format[1].formatstring ? ", \"%s\"" : " or \"%s\".\n"), format->formatstring);
                }
        }
+
+       // texture loading can take a while, so make sure we're sending keepalives
+       CL_KeepaliveMessage(false);
+
        if (developer_memorydebug.integer)
                Mem_CheckSentinelsGlobal();
        return NULL;
@@ -1017,6 +1021,7 @@ void Image_FixTransparentPixels_f(void)
                        Con_Printf("unchanged.\n");
                Mem_Free(data);
        }
+       FS_FreeSearch(search);
 }
 
 qboolean Image_WriteTGABGR_preflipped (const char *filename, int width, int height, const unsigned char *data, unsigned char *buffer)