]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Comment out a line in setmodel again (needs fixing but wasn't in there before anyway)
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Feb 2008 18:15:09 +0000 (18:15 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Feb 2008 18:15:09 +0000 (18:15 +0000)
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

clvm_cmds.c
gl_rmain.c
menu.c

index 3fc8703b7b48081bfa4d35ca1620bf8b95b7b5bd..1c6222a39f0f678bb51ded123124701e62101fdd 100644 (file)
@@ -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
        {
index ec66a384d65d46135b6e520ce7bab68ed50b99ad..8d03b5ac8b0bd3f46b1161c6832480ed533ace9e 100644 (file)
@@ -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 c7845ca662fb7f84829e81f4ab1fc6728756827c..61fc25328b0af67b6037f24eb01179b454090cdf 100644 (file)
--- 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);