[Scummvm-git-logs] scummvm branch-2-5 -> 56af911ced2864853221cc77c4d26d884a625670
aquadran
aquadran at gmail.com
Sat Oct 2 09:35:23 UTC 2021
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:
56af911ced GRIM: For Grim Fandango, OpenGL without shaders is preferred as default
Commit: 56af911ced2864853221cc77c4d26d884a625670
https://github.com/scummvm/scummvm/commit/56af911ced2864853221cc77c4d26d884a625670
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-10-02T11:35:19+02:00
Commit Message:
GRIM: For Grim Fandango, OpenGL without shaders is preferred as default
Changed paths:
engines/grim/grim.cpp
diff --git a/engines/grim/grim.cpp b/engines/grim/grim.cpp
index 7f92a8ce02..d34f956a2e 100644
--- a/engines/grim/grim.cpp
+++ b/engines/grim/grim.cpp
@@ -281,6 +281,13 @@ GfxBase *GrimEngine::createRenderer(int screenW, int screenH) {
if (backendCapableOpenGL && matchingRendererType == Graphics::kRendererTypeOpenGLShaders && !OpenGLContext.shadersSupported) {
matchingRendererType = Graphics::kRendererTypeOpenGL;
}
+
+ // For Grim Fandango, OpenGL renderer without shaders is preferred
+ if (desiredRendererType == Graphics::kRendererTypeDefault &&
+ matchingRendererType == Graphics::kRendererTypeOpenGLShaders &&
+ getGameType() == GType_GRIM) {
+ matchingRendererType = Graphics::kRendererTypeOpenGL;
+ }
#endif
if (matchingRendererType != desiredRendererType && desiredRendererType != Graphics::kRendererTypeDefault) {
More information about the Scummvm-git-logs
mailing list