]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
fix decal draw order bug introduced in recent commit, I forgot that decals are not...
[xonotic/darkplaces.git] / gl_rmain.c
index fa49f791629dcba2cf89ffeab3cacf4a858ad185..fa278314082438e75724a5db86330a8b0f74f15a 100644 (file)
@@ -1232,15 +1232,6 @@ void R_RenderScene(void)
                                r_refdef.worldmodel->Draw(r_refdef.worldentity);
                                R_TimeReport("world");
                        }
-
-                       R_DrawLightningBeams();
-                       R_TimeReport("lightning");
-
-                       R_DrawParticles();
-                       R_TimeReport("particles");
-
-                       R_DrawExplosions();
-                       R_TimeReport("explosions");
                }
 
                // don't let sound skip if going slow
@@ -1266,6 +1257,18 @@ void R_RenderScene(void)
 
                GL_ShowTrisColor(0.1, 0, 0, 1);
 
+               if (cl.csqc_vidvars.drawworld)
+               {
+                       R_DrawLightningBeams();
+                       R_TimeReport("lightning");
+
+                       R_DrawParticles();
+                       R_TimeReport("particles");
+
+                       R_DrawExplosions();
+                       R_TimeReport("explosions");
+               }
+
                R_MeshQueue_RenderTransparent();
                R_TimeReport("drawtrans");