always clearing to avoid artifacts in unrendered areas (e.g. CPMA's server info UI)

This commit is contained in:
myT 2017-12-29 22:59:19 +01:00
parent f084ddb218
commit fe60c9e620
2 changed files with 6 additions and 6 deletions

View file

@ -973,11 +973,11 @@ static const void* RB_BeginFrame( const void* data )
GL2_BeginFrame();
// clear screen for debugging
if ( r_clear->integer ) {
qglClearColor( 1, 0, 0.5, 1 );
qglClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
}
if ( r_clear->integer )
qglClearColor( 1.0f, 0.0f, 0.5f, 1.0f );
else
qglClearColor( 0.0f, 0.0f, 0.0f, 1.0f );
qglClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
return (const void*)(cmd + 1);
}

View file

@ -985,7 +985,7 @@ extern cvar_t *r_uiFullScreen; // ui is running fullscreen
extern cvar_t *r_showtris; // enables wireframe rendering of the world
extern cvar_t *r_showsky; // forces sky in front of all surfaces
extern cvar_t *r_shownormals; // draws wireframe normals
extern cvar_t *r_clear; // force screen clear every frame
extern cvar_t *r_clear; // clear to violet instead of black for debugging
extern cvar_t *r_lockpvs;
extern cvar_t *r_portalOnly;