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:
Le Philousophe 2022-11-19 00:37:59 +01:00 committed by Eugene Sandulenko
parent db1d834729
commit 77fce6614e

View File

@ -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);
}