From 7d106fd945d8aae37e63b2c4284c524114bfa0f3 Mon Sep 17 00:00:00 2001 From: eihrul Date: Mon, 14 Dec 2009 22:41:55 +0000 Subject: [PATCH] make Draw_FreePic set pic->tex to NULL to prevent reuse of invalid texture git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9586 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gl_draw.c b/gl_draw.c index 6061c8dd..291bdc53 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -519,6 +519,7 @@ void Draw_FreePic(const char *picname) if (!strcmp (picname, pic->name) && pic->tex) { R_FreeTexture(pic->tex); + pic->tex = NULL; pic->width = 0; pic->height = 0; return; -- 2.39.2