summaryrefslogtreecommitdiff
path: root/src/renderer/tr_backend.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-29 11:42:57 +0000
committerTim Angus <tim@ngus.net>2013-01-10 22:36:33 +0000
commit76544bcec46127587d183a90e5ff817a71e1f139 (patch)
treeb89ca57a69d613440ff754a94ba4711983dc03a9 /src/renderer/tr_backend.c
parent34e5d1056d0cd83648db904549a368ef904e2be8 (diff)
Fix menu corruption on IRIX (#5097), patch by Rainer Canavan
Diffstat (limited to 'src/renderer/tr_backend.c')
-rw-r--r--src/renderer/tr_backend.c10
1 files changed, 5 insertions, 5 deletions
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();