]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
check if skinframe is NULL in R_SkinFrame_MarkUsed
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 24 Apr 2007 14:41:27 +0000 (14:41 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 24 Apr 2007 14:41:27 +0000 (14:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7171 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index b3294517c45a9572cf190441ad492c6323a8150a..3d35a29cd23703a144e66142e0ca0518a951b120 100644 (file)
@@ -1055,6 +1055,8 @@ void R_SkinFrame_PrepareForPurge(void)
 
 void R_SkinFrame_MarkUsed(skinframe_t *skinframe)
 {
+       if (!skinframe)
+               return;
        // mark the skinframe as used for the purging code
        skinframe->loadsequence = r_skinframe.loadsequence;
 }