Fix menu corruption on IRIX (#5097), patch by Rainer Canavan

This commit is contained in:
Thilo Schulz 2011-07-29 11:42:57 +00:00
parent 2349148cf1
commit 1ea7ab1f42

View file

@ -445,11 +445,6 @@ void RB_BeginDrawingView (void) {
// 2D images again // 2D images again
backEnd.projection2D = qfalse; backEnd.projection2D = qfalse;
//
// set the modelview matrix for the viewer
//
SetViewportAndScissor();
// ensures that depth writes are enabled for the depth clear // ensures that depth writes are enabled for the depth clear
GL_State( GLS_DEFAULT ); GL_State( GLS_DEFAULT );
// clear relevant buffers // clear relevant buffers
@ -470,6 +465,11 @@ void RB_BeginDrawingView (void) {
} }
qglClear( clearBits ); qglClear( clearBits );
//
// set the modelview matrix for the viewer
//
SetViewportAndScissor();
if ( ( backEnd.refdef.rdflags & RDF_HYPERSPACE ) ) if ( ( backEnd.refdef.rdflags & RDF_HYPERSPACE ) )
{ {
RB_Hyperspace(); RB_Hyperspace();