From 59d6db818e99a32b37d922d46e8c598f8dc7f8c0 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 20 Oct 2008 02:07:00 +0000 Subject: [PATCH] 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 --- gl_textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2