summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-10-08 08:01:00 -0500
committerTim Angus <tim@ngus.net>2014-06-17 17:43:34 +0100
commit765d551554d18ca685aeaf5a0f99bcb1f1a444de (patch)
tree9841f26b19df99017393eba39bfbc2f8d8c506eb /src
parentaab8097479f71fa789a6030c047f5df882848368 (diff)
Revert "5097 - Menu corrupted on start (on IRIX)"
Calling glClear( any bits ) in GL_SetDefaultState makes connect screen black using the proprietary NVidia driver on Windows and GNU/Linux. This reverts commit 92573270de98a20cd78842bd2043cfe07bc5b2e1.
Diffstat (limited to 'src')
-rw-r--r--src/renderergl1/tr_init.c10
-rw-r--r--src/renderergl2/tr_init.c10
2 files changed, 0 insertions, 20 deletions
diff --git a/src/renderergl1/tr_init.c b/src/renderergl1/tr_init.c
index 8e0cb655..80b645ab 100644
--- a/src/renderergl1/tr_init.c
+++ b/src/renderergl1/tr_init.c
@@ -800,16 +800,6 @@ 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 );
}
/*
diff --git a/src/renderergl2/tr_init.c b/src/renderergl2/tr_init.c
index 8da2b617..4be20a97 100644
--- a/src/renderergl2/tr_init.c
+++ b/src/renderergl2/tr_init.c
@@ -882,16 +882,6 @@ void GL_SetDefaultState( void )
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 );
-
if (glRefConfig.seamlessCubeMap)
qglEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
}