[Scummvm-git-logs] scummvm master -> af7e042ac4a014d6eea2974429b7ea83d19b7405

lotharsm mail at serra.me
Mon Jun 21 19:24:14 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:
af7e042ac4 BACKENDS: SDL: Allow setting OpenGL mode via registerDefault


Commit: af7e042ac4a014d6eea2974429b7ea83d19b7405
    https://github.com/scummvm/scummvm/commit/af7e042ac4a014d6eea2974429b7ea83d19b7405
Author: Lothar Serra Mari (mail at serra.me)
Date: 2021-06-21T21:23:34+02:00

Commit Message:
BACKENDS: SDL: Allow setting OpenGL mode via registerDefault

Changed paths:
    backends/platform/sdl/sdl.cpp


diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 9a5c20b982..5a927564d6 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -288,7 +288,7 @@ void OSystem_SDL::initBackend() {
 		// subclass does not want any switching of graphics managers anyway.
 		setupGraphicsModes();
 
-		if (ConfMan.hasKey("gfx_mode") || ConfMan.get("gfx_mode") == "opengl") {
+		if (!ConfMan.get("gfx_mode").empty()) {
 			// If the gfx_mode is from OpenGL, create the OpenGL graphics manager
 			Common::String gfxMode(ConfMan.get("gfx_mode"));
 			for (uint i = _firstGLMode; i < _graphicsModeIds.size(); ++i) {




More information about the Scummvm-git-logs mailing list