From 527be12d42e656ed1949648bed2b53bf55f252c6 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 29 Sep 2002 02:06:55 +0000 Subject: [PATCH] fix DrawQ_Fill rendering (Pic with no string) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2469 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_draw.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gl_draw.c b/gl_draw.c index f435ed62..1df64987 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -443,8 +443,13 @@ void R_DrawQueue(void) if (strcmp(str, currentpic)) { currentpic = str; - pic = Draw_CachePic(str); - m.tex[0] = R_GetTexture(pic->tex); + if (*str) + { + pic = Draw_CachePic(str); + m.tex[0] = R_GetTexture(pic->tex); + } + else + m.tex[0] = 0; R_Mesh_TextureState(&m); } if (*str) -- 2.39.2