-extern cvar_t v_glslgamma;
extern cvar_t sbar_info_pos;
extern cvar_t r_fog_clear;
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();
}
DrawQ_Finish();
- R_DrawGamma();
-
R_Mesh_Finish();
}
loadingscreen_lastupdate = t;
}
+ // set up the r_texture_gammaramps texture which we need for rendering the loadingscreenpic
+ VID_UpdateGamma();
+ R_UpdateVariables();
+
if(!scr_loadingscreen_background.integer)
clear = true;