COMMON: gfx_mode is not always propagated

This commit is contained in:
Miro Kropacek 2023-02-05 16:59:40 +01:00 committed by Eugene Sandulenko
parent 387ceddef1
commit 06c9928f3a

View File

@ -223,6 +223,14 @@ void initCommonGFX() {
if (gameDomain->contains("shader"))
g_system->setShader(ConfMan.get("shader"));
// TODO: switching between OpenGL and SurfaceSDL is quite fragile
// and the SDL backend doesn't really need this so leave it out
// for now to avoid regressions
#ifndef SDL_BACKEND
if (gameDomain->contains("gfx_mode"))
g_system->setGraphicsMode(ConfMan.get("gfx_mode").c_str());
#endif
}
}