OPENGL: Limit scissor override to invisible overlay.

This fixes some corner cases which caused black bars to appear for a few screen
updates when the overlay is visible.
This commit is contained in:
Johannes Schickel 2015-12-13 19:05:18 +01:00
parent f9085aca06
commit 942d0fdad4

View file

@ -366,7 +366,7 @@ void OpenGLGraphicsManager::updateScreen() {
_forceRedraw = false;
// Clear the screen buffer.
if (_scissorOverride) {
if (_scissorOverride && !_overlayVisible) {
// In certain cases we need to assure that the whole screen area is
// cleared. For example, when switching from overlay visible to
// invisible, we need to assure that all contents are cleared to