From bb26389bfa23c722018724cb0a8fa9188afdc551 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 27 Oct 2002 12:13:53 +0000 Subject: [PATCH] set depth and stencil clear values git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2568 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_backend.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gl_backend.c b/gl_backend.c index bf28711a..d735341a 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -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 -- 2.39.2