SDL: Do not allow toggle fullscreen for backends which can lose opengl context used for 3d games. (#2514)
This commit is contained in:
parent
495eb1b370
commit
59ba9cb715
8 changed files with 16 additions and 7 deletions
|
@ -205,6 +205,9 @@ bool OpenGLSdlGraphicsManager::hasFeature(OSystem::Feature f) const {
|
|||
switch (f) {
|
||||
case OSystem::kFeatureFullscreenMode:
|
||||
case OSystem::kFeatureIconifyWindow:
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
case OSystem::kFeatureFullscreenToggleKeepsContext:
|
||||
#endif
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue