SDL: Do not allow toggle fullscreen for backends which can lose opengl context used for 3d games. (#2514)

This commit is contained in:
Paweł Kołodziejski 2020-10-13 20:27:58 +02:00 committed by GitHub
parent 495eb1b370
commit 59ba9cb715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 7 deletions

View file

@ -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: