From: havoc Date: Sun, 27 Oct 2002 12:13:53 +0000 (+0000) Subject: set depth and stencil clear values X-Git-Tag: RELEASE_0_2_0_RC1~111 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb26389bfa23c722018724cb0a8fa9188afdc551;p=xonotic%2Fdarkplaces.git set depth and stencil clear values git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2568 d7cf8633-e32d-0410-b094-e92efae38249 --- 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