From: havoc Date: Mon, 2 Dec 2002 20:06:27 +0000 (+0000) Subject: fix textured DrawQ_Fill problem when DrawQ_Fill is the first 2d primitive rendered... X-Git-Tag: RELEASE_0_2_0_RC1~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1bac380d5120a653c87a510b9d3f475c70cea793;p=xonotic%2Fdarkplaces.git fix textured DrawQ_Fill problem when DrawQ_Fill is the first 2d primitive rendered (thanks Tomaz) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2675 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index c18954bc..8e7ea4eb 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -402,9 +402,10 @@ void R_DrawQueue(void) R_Mesh_Start(); R_Mesh_Matrix(&r_identitymatrix); - memset(&m, 0, sizeof(m)); chartexnum = R_GetTexture(char_texture); - m.tex[0] = chartexnum; + + memset(&m, 0, sizeof(m)); + m.tex[0] = 0; R_Mesh_TextureState(&m); currentpic = "";