mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GUI: Fix crash on switch SDL Surface -> OpenGL
This commit is contained in:
@@ -1903,6 +1903,11 @@ void OptionsDialog::reflowLayout() {
|
||||
|
||||
void OptionsDialog::setupGraphicsTab() {
|
||||
if (_graphicsTabId != -1) {
|
||||
// Since we do not create shader controls, the rebuild is required
|
||||
// Fixes crash when switching from SDL Surface to OpenGL
|
||||
if (!_shader && g_system->hasFeature(OSystem::kFeatureShaders)) {
|
||||
rebuild();
|
||||
}
|
||||
setGraphicSettingsState(_enableGraphicSettings);
|
||||
}
|
||||
if (!_fullscreenCheckbox)
|
||||
|
||||
Reference in New Issue
Block a user