From 68bdb7c73970ff1271b01a20b1af0ea33dd57d4e Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Thu, 4 Oct 2012 14:12:41 +0000 Subject: [PATCH] IOQ3 commit 2245 --- reaction/code/renderer/tr_backend.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reaction/code/renderer/tr_backend.c b/reaction/code/renderer/tr_backend.c index 2b630a4f..f327db0e 100644 --- a/reaction/code/renderer/tr_backend.c +++ b/reaction/code/renderer/tr_backend.c @@ -445,6 +445,11 @@ void RB_BeginDrawingView (void) { // 2D images again backEnd.projection2D = qfalse; + // + // set the modelview matrix for the viewer + // + SetViewportAndScissor(); + // ensures that depth writes are enabled for the depth clear GL_State( GLS_DEFAULT ); // clear relevant buffers @@ -465,11 +470,6 @@ void RB_BeginDrawingView (void) { } qglClear( clearBits ); - // - // set the modelview matrix for the viewer - // - SetViewportAndScissor(); - if ( ( backEnd.refdef.rdflags & RDF_HYPERSPACE ) ) { RB_Hyperspace();