]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
set depth and stencil clear values
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Oct 2002 12:13:53 +0000 (12:13 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Oct 2002 12:13:53 +0000 (12:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2568 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index bf28711ae54a57735a366bd9800dd8f5150d8900..d735341a6672ca6c943953ece3035f4c296fa1e8 100644 (file)
@@ -850,6 +850,11 @@ void R_ClearScreen(void)
        {
                // clear to black
                qglClearColor(0,0,0,0);CHECKGLERROR
+               qglClearDepth(1);CHECKGLERROR
+               if (gl_stencil)
+               {
+                       qglClearStencil(0);CHECKGLERROR
+               }
                // clear the screen
                qglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | (gl_stencil ? GL_STENCIL_BUFFER_BIT : 0));CHECKGLERROR
                // set dithering mode