diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-02-15 20:14:02 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-02-16 21:58:25 +0000 |
commit | 04c8f48d8363b80540a3ce057908413b4479c92b (patch) | |
tree | 49b2ab1b12fba4269789eaf1c7c7f7363c4fc8f0 /src/renderergl1 | |
parent | 5ebc9ce690c0559155c9e09b4671b7d50d42a880 (diff) |
5097 - Menu corrupted on start (on IRIX)
Diffstat (limited to 'src/renderergl1')
-rw-r--r-- | src/renderergl1/tr_init.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 ); } /* |