mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
BACKENDS: OPENGL: Disable scissor test when overlay is for games
WIthout this, the game cannot draw outside its area for subtitles. This is exhibited when scaling is set to center.
This commit is contained in:
parent
db1d834729
commit
77fce6614e
@ -636,7 +636,7 @@ void OpenGLGraphicsManager::updateScreen() {
|
||||
// Clear the screen buffer.
|
||||
GL_CALL(glClear(GL_COLOR_BUFFER_BIT));
|
||||
|
||||
if (!_overlayInGUI) {
|
||||
if (!_overlayVisible) {
|
||||
// The scissor test is enabled to:
|
||||
// - Clip the cursor to the game screen
|
||||
// - Clip the game screen when the shake offset is non-zero
|
||||
@ -694,7 +694,7 @@ void OpenGLGraphicsManager::updateScreen() {
|
||||
_cursorWidthScaled, _cursorHeightScaled);
|
||||
}
|
||||
|
||||
if (!_overlayInGUI) {
|
||||
if (!_overlayVisible) {
|
||||
_backBuffer.enableScissorTest(false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user