]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
Delete unused Debug_PolygonBegin and associated code.
[xonotic/darkplaces.git] / cl_screen.c
index 771d27c927ece82b57722d31cfbaa212454ca4ae..8ed18a2514f8b9d881317c4ffc8dddfe3f92afe0 100644 (file)
@@ -2182,7 +2182,11 @@ static void SCR_DrawScreen (void)
                r_refdef.view.ortho_x = atan(r_refdef.view.frustum_x) * (360.0 / M_PI); // abused as angle by VM_CL_R_SetView
                r_refdef.view.ortho_y = atan(r_refdef.view.frustum_y) * (360.0 / M_PI); // abused as angle by VM_CL_R_SetView
 
-               if(!CL_VM_UpdateView(r_stereo_side ? 0.0 : max(0.0, cl.time - cl.oldtime)))
+               // if CSQC is loaded, it is required to provide the CSQC_UpdateView function,
+               // and won't render a view if it does not call that.
+               if (cl.csqc_loaded)
+                       CL_VM_UpdateView(r_stereo_side ? 0.0 : max(0.0, cl.time - cl.oldtime));
+               else
                        R_RenderView();
        }