]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_light.c
rewrote r_speeds stats code, now uses renderstats global structure rather than indivi...
[xonotic/darkplaces.git] / r_light.c
index 66f98b473c44f91354b38718fadd1ede772b1674..13858976871738fbdfa5b56935df868c34eafa39 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -108,7 +108,6 @@ void R_UpdateLights(void)
        }
 
        r_numdlights = 0;
-       c_dlights = 0;
 
        if (!r_dynamic.integer || !cl_dlights)
                return;
@@ -121,7 +120,6 @@ void R_UpdateLights(void)
                        R_RTLight_UpdateFromDLight(&cl_dlights[i].rtlight, &cl_dlights[i], false);
                        // FIXME: use pointer instead of copy
                        r_dlight[r_numdlights++] = cl_dlights[i];
-                       c_dlights++; // count every dlight in use
                }
        }
 }