From 76544bcec46127587d183a90e5ff817a71e1f139 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 29 Jul 2011 11:42:57 +0000 Subject: Fix menu corruption on IRIX (#5097), patch by Rainer Canavan --- src/renderer/tr_backend.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/renderer/tr_backend.c') diff --git a/src/renderer/tr_backend.c b/src/renderer/tr_backend.c index aa54344d..a93d3fee 100644 --- a/src/renderer/tr_backend.c +++ b/src/renderer/tr_backend.c @@ -446,11 +446,6 @@ 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 @@ -471,6 +466,11 @@ void RB_BeginDrawingView (void) { } qglClear( clearBits ); + // + // set the modelview matrix for the viewer + // + SetViewportAndScissor(); + if ( ( backEnd.refdef.rdflags & RDF_HYPERSPACE ) ) { RB_Hyperspace(); -- cgit