]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix decal draw order bug introduced in recent commit, I forgot that decals are not...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Feb 2006 12:12:24 +0000 (12:12 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Feb 2006 12:12:24 +0000 (12:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6003 d7cf8633-e32d-0410-b094-e92efae38249

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");