aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
diff options
context:
space:
mode:
authorJohannes Schickel2015-12-13 19:05:18 +0100
committerJohannes Schickel2015-12-13 21:30:25 +0100
commit942d0fdad46d2105f1606ddea8cd9146acec70d8 (patch)
tree21aa00f215fa59c39868deb7828f305e163015da /backends/graphics/opengl
parentf9085aca0699d2b70e5310efe0e94ef9b0a41c87 (diff)
downloadscummvm-rg350-942d0fdad46d2105f1606ddea8cd9146acec70d8.tar.gz
scummvm-rg350-942d0fdad46d2105f1606ddea8cd9146acec70d8.tar.bz2
scummvm-rg350-942d0fdad46d2105f1606ddea8cd9146acec70d8.zip
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.
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp2
1 files changed, 1 insertions, 1 deletions
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