[Scummvm-git-logs] scummvm master -> 74769d00ff13547b6c361f429fd0742fd78cffff
AndywinXp
noreply at scummvm.org
Wed Oct 4 21:39:41 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
74769d00ff GUI: Fix crash when no shader was set
Commit: 74769d00ff13547b6c361f429fd0742fd78cffff
https://github.com/scummvm/scummvm/commit/74769d00ff13547b6c361f429fd0742fd78cffff
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-10-04T23:39:35+02:00
Commit Message:
GUI: Fix crash when no shader was set
Changed paths:
gui/options.cpp
diff --git a/gui/options.cpp b/gui/options.cpp
index 810712872cc..0cc24029e4d 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -742,7 +742,7 @@ void OptionsDialog::apply() {
Common::U32String previousShader;
// Shader options
- if (g_system->hasFeature(OSystem::kFeatureShaders)) {
+ if (g_system->hasFeature(OSystem::kFeatureShaders) && _shader) {
if (ConfMan.hasKey("shader", _domain) && !ConfMan.get("shader", _domain).empty())
previousShader = ConfMan.get("shader", _domain);
More information about the Scummvm-git-logs
mailing list