]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
fix incredibly stupid bug in Memory_Init, it was clearing the pool chain AFTER alloca...
[xonotic/darkplaces.git] / gl_draw.c
index b908a2429e2fecda4292f23aa67fcc866090f3df..f618099724e9c68bfe6df50a66c8e1765254ef13 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -310,7 +310,7 @@ cachepic_t  *Draw_CachePic (const char *path, qboolean persistent)
        {
                clvideo_t *video;
 
-               video = CL_GetVideo(path);
+               video = CL_GetVideoByName(path);
                if( video )
                        return &video->cpif;
        }