Switch to direct rendering before clearing the screen (OpenGL GAL).

This commit is contained in:
Maciej Suminski 2016-05-02 15:56:19 +02:00
parent 5ba84dda0a
commit 431e343201
1 changed files with 1 additions and 0 deletions

View File

@ -672,6 +672,7 @@ void OPENGL_GAL::Flush()
void OPENGL_GAL::ClearScreen( const COLOR4D& aColor )
{
// Clear screen
compositor.SetBuffer( OPENGL_COMPOSITOR::DIRECT_RENDERING );
glClearColor( aColor.r, aColor.g, aColor.b, aColor.a );
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
}