[Scummvm-git-logs] scummvm master -> fffc1feb52945792ac1aebac7c0e885df11c3283
scemino
noreply at scummvm.org
Tue Jan 28 20:27:04 UTC 2025
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:
fffc1feb52 TWP: Thimbleweed Park should not crash if shaders are not supported
Commit: fffc1feb52945792ac1aebac7c0e885df11c3283
https://github.com/scummvm/scummvm/commit/fffc1feb52945792ac1aebac7c0e885df11c3283
Author: scemino (scemino74 at gmail.com)
Date: 2025-01-28T21:26:30+01:00
Commit Message:
TWP: Thimbleweed Park should not crash if shaders are not supported
Changed paths:
engines/twp/twp.cpp
diff --git a/engines/twp/twp.cpp b/engines/twp/twp.cpp
index 994165b48e3..38249a8d08d 100644
--- a/engines/twp/twp.cpp
+++ b/engines/twp/twp.cpp
@@ -1012,6 +1012,10 @@ Common::Error TwpEngine::run() {
const Common::String &gameTarget = ConfMan.getActiveDomainName();
AchMan.setActiveDomain(getMetaEngine()->getAchievementsInfo(gameTarget));
+ if (!g_system->hasFeature(OSystem::kFeatureShadersForGame)) {
+ error("Thimbleweed Park requires OpenGL with shaders");
+ }
+
initGraphics3d(SCREEN_WIDTH, SCREEN_HEIGHT);
// Set the engine's debugger console
More information about the Scummvm-git-logs
mailing list