From: havoc Date: Sun, 29 Sep 2002 02:06:55 +0000 (+0000) Subject: fix DrawQ_Fill rendering (Pic with no string) X-Git-Tag: RELEASE_0_2_0_RC1~177 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=527be12d42e656ed1949648bed2b53bf55f252c6;p=xonotic%2Fdarkplaces.git fix DrawQ_Fill rendering (Pic with no string) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2469 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)