]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed r_speeds stats with r_showsurfaces 1 mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Mar 2006 08:09:45 +0000 (08:09 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Mar 2006 08:09:45 +0000 (08:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6194 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index f80dbca8bd693a78659c84ed4dc2ad9f1d6a2dc2..a98dadecf188f3e2abf15be58e56ae7394b1b380 100644 (file)
@@ -3236,7 +3236,9 @@ void R_DrawSurfaces(entity_render_t *ent, qboolean skysurfaces)
                                GL_Color((k & 15) * (1.0f / 16.0f), ((k >> 4) & 15) * (1.0f / 16.0f), ((k >> 8) & 15) * (1.0f / 16.0f), 0.2f);
                                RSurf_SetVertexPointer(ent, texture, surface, modelorg, false, false);
                                RSurf_Draw(surface);
+                               renderstats.entities_triangles += surface->num_triangles;
                        }
+                       renderstats.entities_surfaces++;
                }
        }
        else if (ent == r_refdef.worldentity)