]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed r_showtris
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 7 Aug 2004 15:51:42 +0000 (15:51 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 7 Aug 2004 15:51:42 +0000 (15:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4307 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index 45040c5ca4cb782d0ee12b46f3989df15aec0f89..2be923d17600b2d3bb3f4e7315d24dc29fdca147 100644 (file)
@@ -1270,6 +1270,19 @@ void SCR_DrawScreen (void)
 
                R_TimeReport("setup");
 
+               if (r_showtrispass)
+               {
+                       rmeshstate_t m;
+                       r_showtrispass = 0;
+                       GL_BlendFunc(GL_ONE, GL_ONE);
+                       GL_DepthTest(GL_FALSE);
+                       GL_DepthMask(GL_FALSE);
+                       memset(&m, 0, sizeof(m));
+                       R_Mesh_State(&m);
+                       GL_ShowTrisColor(0.2,0.2,0.2,1);
+                       r_showtrispass = 1;
+               }
+
                if (scr_conlines < vid.conheight && cls.signon == SIGNONS)
                {
                        float size;