[Scummvm-git-logs] scummvm master -> 7738f6a57b4dd0e21cade2defd7f62e4945b300a

aquadran aquadran at gmail.com
Sat Oct 2 09:24:43 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:
7738f6a57b GRIM: For Grim Fandango, OpenGL without shaders is preferred as default


Commit: 7738f6a57b4dd0e21cade2defd7f62e4945b300a
    https://github.com/scummvm/scummvm/commit/7738f6a57b4dd0e21cade2defd7f62e4945b300a
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-10-02T11:24:38+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..ab21213e92 100644
--- a/engines/grim/grim.cpp
+++ b/engines/grim/grim.cpp
@@ -283,6 +283,13 @@ GfxBase *GrimEngine::createRenderer(int screenW, int screenH) {
 	}
 #endif
 
+	// For Grim Fandango, OpenGL renderer without shaders is preferred
+	if (desiredRendererType == Graphics::kRendererTypeDefault &&
+	    matchingRendererType == Graphics::kRendererTypeOpenGLShaders &&
+	    getGameType() == GType_GRIM) {
+		matchingRendererType = Graphics::kRendererTypeOpenGL;
+	}
+
 	if (matchingRendererType != desiredRendererType && desiredRendererType != Graphics::kRendererTypeDefault) {
 		// Display a warning if unable to use the desired renderer
 		warning("Unable to create a '%s' renderer", rendererConfig.c_str());




More information about the Scummvm-git-logs mailing list