[Scummvm-git-logs] scummvm master -> e555923e0e08477a364a8e198a56dc433eb8e89a
lotharsm
mail at serra.me
Mon Jun 21 15:56:12 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:
e555923e0e DISTS: WIN32: Use OpenGL as default renderer
Commit: e555923e0e08477a364a8e198a56dc433eb8e89a
https://github.com/scummvm/scummvm/commit/e555923e0e08477a364a8e198a56dc433eb8e89a
Author: Lothar Serra Mari (mail at serra.me)
Date: 2021-06-21T17:53:30+02:00
Commit Message:
DISTS: WIN32: Use OpenGL as default renderer
Changed paths:
backends/platform/sdl/sdl.cpp
backends/platform/sdl/win32/win32.cpp
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index ca11dc12ec..9a5c20b982 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")) {
+ if (ConfMan.hasKey("gfx_mode") || ConfMan.get("gfx_mode") == "opengl") {
// 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) {
diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp
index 835f7ff62c..3116617ab6 100644
--- a/backends/platform/sdl/win32/win32.cpp
+++ b/backends/platform/sdl/win32/win32.cpp
@@ -125,6 +125,10 @@ void OSystem_Win32::initBackend() {
_textToSpeechManager = new WindowsTextToSpeechManager();
#endif
+#ifdef USE_OPENGL
+ ConfMan.registerDefault("gfx_mode", "opengl");
+#endif
+
// Invoke parent implementation of this method
OSystem_SDL::initBackend();
}
More information about the Scummvm-git-logs
mailing list