]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
removed a wasted normalize in fragment shader for model lighting
[xonotic/darkplaces.git] / cl_main.c
index 994fe164d2f326979a06ac8b33eb406e5ecdb4e8..d07b186a66563abaec53368c1e03fe2bc8267b6e 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -110,6 +110,9 @@ void CL_ClearState(void)
        // reset the view zoom interpolation
        cl.mviewzoom[0] = cl.mviewzoom[1] = 1;
 
+       // set up the float version of the stats array for easier access to float stats
+       cl.statsf = (float *)cl.stats;
+
        cl.num_entities = 0;
        cl.num_static_entities = 0;
        cl.num_temp_entities = 0;