[Scummvm-git-logs] scummvm master -> 02c2dcc5b16442d13da4eff016eecbae551b6dff

sev- noreply at scummvm.org
Mon Apr 6 16:56:21 UTC 2026


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:
02c2dcc5b1 BACKENDS: OPENGLSDL: Fix compilation with USE_OPENGL_GAME disabled


Commit: 02c2dcc5b16442d13da4eff016eecbae551b6dff
    https://github.com/scummvm/scummvm/commit/02c2dcc5b16442d13da4eff016eecbae551b6dff
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-04-06T18:56:03+02:00

Commit Message:
BACKENDS: OPENGLSDL: Fix compilation with USE_OPENGL_GAME disabled

Changed paths:
    backends/graphics/openglsdl/openglsdl-graphics.cpp


diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 8b85804bf3e..52d916e0c70 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -520,7 +520,11 @@ bool OpenGLSdlGraphicsManager::loadVideoMode(uint requestedWidth, uint requested
 	// If it's the launcher or a 3D game supporting arbitrary resolutions, leave it as is
 	// as there is no downscale
 	const bool engineSupportsArbitraryResolutions = !g_engine ||
+#if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS)
 		(_renderer3d && g_engine->hasFeature(Engine::kSupportsArbitraryResolutions));
+#else
+		false;
+#endif
 	if (!engineSupportsArbitraryResolutions) {
 		requestedWidth  = MAX<uint>(requestedWidth, _lastRequestedWidth  * _graphicsScale);
 		requestedHeight = MAX<uint>(requestedHeight, _lastRequestedHeight * _graphicsScale);




More information about the Scummvm-git-logs mailing list