]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
fix bugs with CSQC clearscene function - it now restores the view to
[xonotic/darkplaces.git] / gl_rmain.c
index e9b213b7559d05e909059607ac9e5b0c2b700433..73b8f58b9997f01d9c099e9b1fa1d7b2ab7f87a1 100644 (file)
@@ -5924,6 +5924,8 @@ static void R_Water_ProcessPlanes(void)
                        r_refdef.view.height = r_waterstate.cameraheight;
                        r_refdef.view.frustum_x = 1; // tan(45 * M_PI / 180.0);
                        r_refdef.view.frustum_y = 1; // tan(45 * M_PI / 180.0);
+                       r_refdef.view.ortho_x = 90; // abused as angle by VM_CL_R_SetView
+                       r_refdef.view.ortho_y = 90; // abused as angle by VM_CL_R_SetView
 
                        if(p->camera_entity)
                        {