[Scummvm-git-logs] scummvm master -> 46b6805d939c86fc67960c2284d7b08d11738d9e
lephilousophe
noreply at scummvm.org
Sun Jun 1 20:13:29 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
46b6805d93 BACKENDS: OPENGL: Fix build when 3D is disabled
Commit: 46b6805d939c86fc67960c2284d7b08d11738d9e
https://github.com/scummvm/scummvm/commit/46b6805d939c86fc67960c2284d7b08d11738d9e
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-06-01T22:12:38+02:00
Commit Message:
BACKENDS: OPENGL: Fix build when 3D is disabled
Changed paths:
backends/graphics/opengl/opengl-graphics.cpp
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 79c19faaac4..9c10f96af4c 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -237,11 +237,12 @@ int OpenGLGraphicsManager::getGraphicsMode() const {
#ifdef USE_RGB_COLOR
Graphics::PixelFormat OpenGLGraphicsManager::getScreenFormat() const {
+#if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS)
if (_renderer3d) {
return _defaultFormatAlpha;
- } else {
+ } else
+#endif
return _currentState.gameFormat;
- }
}
Common::List<Graphics::PixelFormat> OpenGLGraphicsManager::getSupportedFormats() const {
More information about the Scummvm-git-logs
mailing list