[Scummvm-git-logs] scummvm master -> 90e3fd1ec1802035fc3a823c0be1298560b9b80f

lephilousophe noreply at scummvm.org
Sun Jul 20 15:58:45 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:
90e3fd1ec1 BACKENDS: OPENGL: Fix build when 3D is not available


Commit: 90e3fd1ec1802035fc3a823c0be1298560b9b80f
    https://github.com/scummvm/scummvm/commit/90e3fd1ec1802035fc3a823c0be1298560b9b80f
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-07-20T17:58:32+02:00

Commit Message:
BACKENDS: OPENGL: Fix build when 3D is not available

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 8529efb6356..5ba16165469 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -960,9 +960,11 @@ Graphics::Surface *OpenGLGraphicsManager::lockScreen() {
 	// Autosave tries to lock the screen to get a screenshot
 	// Fail it like with old graphics3d backends
 	// TODO: Try to return a surface containing a screenshot
+#if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS)
 	if (_renderer3d) {
 		return nullptr;
 	}
+#endif
 
 	assert(_gameScreen);
 	return _gameScreen->getSurface();




More information about the Scummvm-git-logs mailing list