]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't pass a texnum of -1 to glDeleteTextures during shutdown, this has
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Oct 2008 02:07:00 +0000 (02:07 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Oct 2008 02:07:00 +0000 (02:07 +0000)
been crashing ATI drivers

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

gl_textures.c

index 2ef60566c39c1266da980e7c9161b87f10276205..2ad1a2e0f08ae74093f478e1f67dec0afc8e925e 100644 (file)
@@ -308,7 +308,7 @@ void R_FreeTexture(rtexture_t *rt)
        else
                Host_Error("R_FreeTexture: texture \"%s\" not linked in pool", glt->identifier);
 
-       if (glt->texnum)
+       if (glt->texnum > 0)
        {
                CHECKGLERROR
                qglDeleteTextures(1, (GLuint *)&glt->texnum);CHECKGLERROR