]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
liquid now goes through meshqueue sorting
[xonotic/darkplaces.git] / gl_rmain.c
index 0fc2dafce113913438db3249e727880341f18a0a..fbb0c1dc4c0f15518ee9e3596f1c3ecdc981afbd 100644 (file)
@@ -613,8 +613,6 @@ void R_RenderView (void)
        R_SkyStartFrame();
        R_BuildLightList();
 
-       R_MeshQueue_BeginScene();
-
        R_FarClip_Start(r_origin, vpn, 768.0f);
 
        R_TimeReport("setup");
@@ -632,6 +630,8 @@ void R_RenderView (void)
 
        R_Mesh_Start(r_farclip);
 
+       R_MeshQueue_BeginScene();
+
 
        if (skyrendermasked)
        {
@@ -677,7 +677,7 @@ void R_RenderView (void)
        R_DrawExplosions();
        R_TimeReport("explosions");
 
-       R_MeshQueue_EndScene();
+       R_MeshQueue_RenderTransparent();
 
        R_Mesh_AddTransparent();
        R_TimeReport("addtrans");
@@ -691,6 +691,10 @@ void R_RenderView (void)
        R_BlendView();
        R_TimeReport("blendview");
 
+       R_MeshQueue_Render();
+
+       R_MeshQueue_EndScene();
+
        R_Mesh_Finish();
        R_TimeReport("meshfinish");
 }