Skip to content

Commit

Permalink
OPENGL: Limit scissor override to invisible overlay.
Browse files Browse the repository at this point in the history
This fixes some corner cases which caused black bars to appear for a few screen
updates when the overlay is visible.
  • Loading branch information
Johannes Schickel committed Dec 13, 2015
1 parent f9085ac commit 942d0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/graphics/opengl/opengl-graphics.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 942d0fd

Please sign in to comment.