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:
parent
47b8b6dc6a
commit
9689200984
|
@ -1189,7 +1189,8 @@ void OPENGL_GAL::ClearScreen( )
|
||||||
{
|
{
|
||||||
// Clear screen
|
// Clear screen
|
||||||
compositor->SetBuffer( OPENGL_COMPOSITOR::DIRECT_RENDERING );
|
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 );
|
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue