OpenGL: Fix background color being drawn twice in no-AA mode

Fixes: lp:1741363
* https://bugs.launchpad.net/kicad/+bug/1741363
This commit is contained in:
Jon Evans 2018-01-06 09:47:17 -05:00 committed by jean-pierre charras
parent 47b8b6dc6a
commit 9689200984
1 changed files with 2 additions and 1 deletions

View File

@ -1189,7 +1189,8 @@ void OPENGL_GAL::ClearScreen( )
{
// Clear screen
compositor->SetBuffer( OPENGL_COMPOSITOR::DIRECT_RENDERING );
glClearColor( m_clearColor.r, m_clearColor.g, m_clearColor.b, m_clearColor.a );
// NOTE: Black used here instead of m_clearColor; it will be composited later
glClearColor( 0, 0, 0, 1 );
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT );
}