SDL: Fix full screen toggling for 3D games
The previous SdlGraphics3dManager::toggleFullScreen() was not using
beginGFXTransaction / endGFXTransaction in toggleFullScreen().
Restore this logic for 3D games, as using transactions in such games
results in a black screen for 3D games when switching to full screen
A regression from d33487f64
This commit is contained in:
parent
bfb01974f6
commit
d54b61dc7a
1 changed files with 6 additions and 2 deletions
|
@ -401,9 +401,13 @@ void SdlGraphicsManager::toggleFullScreen() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
beginGFXTransaction();
|
bool is3D = g_system->hasFeature(OSystem::kFeatureOpenGLForGame);
|
||||||
|
|
||||||
|
if (!is3D)
|
||||||
|
beginGFXTransaction();
|
||||||
setFeatureState(OSystem::kFeatureFullscreenMode, !getFeatureState(OSystem::kFeatureFullscreenMode));
|
setFeatureState(OSystem::kFeatureFullscreenMode, !getFeatureState(OSystem::kFeatureFullscreenMode));
|
||||||
endGFXTransaction();
|
if (!is3D)
|
||||||
|
endGFXTransaction();
|
||||||
#ifdef USE_OSD
|
#ifdef USE_OSD
|
||||||
if (getFeatureState(OSystem::kFeatureFullscreenMode))
|
if (getFeatureState(OSystem::kFeatureFullscreenMode))
|
||||||
displayMessageOnOSD(_("Fullscreen mode"));
|
displayMessageOnOSD(_("Fullscreen mode"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue