From 04c8f48d8363b80540a3ce057908413b4479c92b Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 15 Feb 2013 20:14:02 -0600 Subject: 5097 - Menu corrupted on start (on IRIX) --- src/renderergl1/tr_init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/renderergl1/tr_init.c') diff --git a/src/renderergl1/tr_init.c b/src/renderergl1/tr_init.c index 14b91927..650c848e 100644 --- a/src/renderergl1/tr_init.c +++ b/src/renderergl1/tr_init.c @@ -884,6 +884,16 @@ void GL_SetDefaultState( void ) qglEnable( GL_SCISSOR_TEST ); qglDisable( GL_CULL_FACE ); qglDisable( GL_BLEND ); + + qglColorMask( GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE ); + qglClearColor( 0.0f, 0.0f, 0.0f, 1.0f ); + qglClearDepth( 1.0 ); + + qglDrawBuffer( GL_FRONT ); + qglClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_ACCUM_BUFFER_BIT|GL_STENCIL_BUFFER_BIT ); + + qglDrawBuffer( GL_BACK ); + qglClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_ACCUM_BUFFER_BIT|GL_STENCIL_BUFFER_BIT ); } /* -- cgit