From 1ea7ab1f4203d578590b972ca46511909c894e01 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 29 Jul 2011 11:42:57 +0000 Subject: [PATCH] Fix menu corruption on IRIX (#5097), patch by Rainer Canavan --- code/renderer/tr_backend.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/renderer/tr_backend.c b/code/renderer/tr_backend.c index 3a55f7d1..3fd07f54 100644 --- a/code/renderer/tr_backend.c +++ b/code/renderer/tr_backend.c @@ -445,11 +445,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 @@ -470,6 +465,11 @@ void RB_BeginDrawingView (void) { } qglClear( clearBits ); + // + // set the modelview matrix for the viewer + // + SetViewportAndScissor(); + if ( ( backEnd.refdef.rdflags & RDF_HYPERSPACE ) ) { RB_Hyperspace();