]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
r_shadow_staticworldlights has mutated into r_shadow_realtime_world_compile, r_shadow...
[xonotic/darkplaces.git] / gl_rmain.c
index 6cac87e5e8dd6cdab416ad746a85ad8cc089e5e1..1d0bc1d2876cf27d7a75ee572198f40487e4617d 100644 (file)
@@ -930,7 +930,7 @@ void R_RenderScene(void)
                S_ExtraUpdate ();
 
        GL_ShowTrisColor(0, 0, 0.033, 1);
-       R_ShadowVolumeLighting(false);
+       R_ShadowVolumeLighting(false, false);
        R_TimeReport("rtlights");
 
        // don't let sound skip if going slow
@@ -960,9 +960,9 @@ void R_RenderScene(void)
        R_MeshQueue_Render();
        R_MeshQueue_EndScene();
 
-       if (r_shadow_visiblevolumes.integer && !r_showtrispass)
+       if ((r_shadow_visiblelighting.integer || r_shadow_visiblevolumes.integer) && !r_showtrispass)
        {
-               R_ShadowVolumeLighting(true);
+               R_ShadowVolumeLighting(r_shadow_visiblelighting.integer, r_shadow_visiblevolumes.integer);
                R_TimeReport("shadowvolume");
        }