From: havoc Date: Mon, 20 Oct 2008 02:07:00 +0000 (+0000) Subject: don't pass a texnum of -1 to glDeleteTextures during shutdown, this has X-Git-Tag: xonotic-v0.1.0preview~2055 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59d6db818e99a32b37d922d46e8c598f8dc7f8c0;p=xonotic%2Fdarkplaces.git don't pass a texnum of -1 to glDeleteTextures during shutdown, this has been crashing ATI drivers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8534 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index 2ef60566..2ad1a2e0 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -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