From 1bac380d5120a653c87a510b9d3f475c70cea793 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 2 Dec 2002 20:06:27 +0000 Subject: [PATCH] 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 --- gl_draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = ""; -- 2.39.2