From 220ed5a8b8c16059a56abb605f8ec054f1620a6b Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 20 Jun 2013 16:21:26 -0500 Subject: Fix r_speeds 4 in OpenGL2 renderer --- src/renderergl2/tr_shade.c | 2 ++ src/renderergl2/tr_world.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/renderergl2/tr_shade.c b/src/renderergl2/tr_shade.c index efbe69a3..d2aedaec 100644 --- a/src/renderergl2/tr_shade.c +++ b/src/renderergl2/tr_shade.c @@ -416,6 +416,7 @@ static void ProjectDlightTexture( void ) { backEnd.pc.c_totalIndexes += tess.numIndexes; backEnd.pc.c_dlightIndexes += tess.numIndexes; + backEnd.pc.c_dlightVertexes += tess.numVertexes; } } @@ -875,6 +876,7 @@ static void ForwardDlight( void ) { backEnd.pc.c_totalIndexes += tess.numIndexes; backEnd.pc.c_dlightIndexes += tess.numIndexes; + backEnd.pc.c_dlightVertexes += tess.numVertexes; } } diff --git a/src/renderergl2/tr_world.c b/src/renderergl2/tr_world.c index dcf0bf00..e88521d6 100644 --- a/src/renderergl2/tr_world.c +++ b/src/renderergl2/tr_world.c @@ -219,6 +219,8 @@ static int R_DlightSurface( msurface_t *surf, int dlightBits ) { if ( dlightBits ) { tr.pc.c_dlightSurfaces++; + } else { + tr.pc.c_dlightSurfacesCulled++; } return dlightBits; -- cgit