From: black Date: Tue, 5 Feb 2008 18:15:09 +0000 (+0000) Subject: Comment out a line in setmodel again (needs fixing but wasn't in there before anyway) X-Git-Tag: xonotic-v0.1.0preview~2441 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7a93776d7db4fd5d8e3292e4949a69c3ee0020f;p=xonotic%2Fdarkplaces.git Comment out a line in setmodel again (needs fixing but wasn't in there before anyway) 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 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 3fc8703b..1c6222a3 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -114,7 +114,7 @@ void VM_CL_setmodel (void) 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 { diff --git a/gl_rmain.c b/gl_rmain.c index ec66a384..8d03b5ac 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -3711,6 +3711,10 @@ void R_RenderView(void) 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; diff --git a/menu.c b/menu.c index c7845ca6..61fc2532 100644 --- a/menu.c +++ b/menu.c @@ -5093,6 +5093,8 @@ void MP_Draw (void) // 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);