]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix textured DrawQ_Fill problem when DrawQ_Fill is the first 2d primitive rendered...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Dec 2002 20:06:27 +0000 (20:06 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Dec 2002 20:06:27 +0000 (20:06 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2675 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index c18954bc02e83110680873582c12ad642b66ab6c..8e7ea4eb67d46436600cfb484b1164b0958789cd 100644 (file)
--- 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 = "";