From 942d0fdad46d2105f1606ddea8cd9146acec70d8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 13 Dec 2015 19:05:18 +0100 Subject: 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. --- backends/graphics/opengl/opengl-graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/graphics/opengl') diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index df74e110bb..c80f57a40e 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -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 -- cgit v1.2.3