Always clear the depth buffer in R_RenderView.
Use realtime as scene time when rendering the menu scene.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8075
d7cf8633-e32d-0410-b094-
e92efae38249
if( mod ) {
// TODO: check if this breaks needed consistency and maybe add a cvar for it too?? [1/10/2008 Black]
- SetMinMaxSize (e, mod->normalmins, mod->normalmaxs);
+ //SetMinMaxSize (e, mod->normalmins, mod->normalmaxs);
}
else
{
R_ClearScreen(r_refdef.fogenabled);
if (r_timereport_active)
R_TimeReport("viewclear");
+ } else {
+ // TODO: FIXME: move this into its own backend function maybe? [2/5/2008 Andreas]
+ GL_Clear( GL_DEPTH_BUFFER_BIT );
+ R_TimeReport("depthclear");
}
r_refdef.view.clear = true;
// menu scenes do not use reduced rendering quality
oldquality = r_refdef.view.quality;
r_refdef.view.quality = 1;
+ // TODO: this needs to be exposed to R_SetView (or something similar) ASAP [2/5/2008 Andreas]
+ r_refdef.scene.time = realtime;
PRVM_Begin;
PRVM_SetProg(PRVM_MENUPROG);