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

lephilousophe noreply at scummvm.org
Fri Nov 7 07:01:37 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:
f5e930b359 HPL1: Set HPL1_USE_OPENGL only if USE_OPENGL_GAME is set


Commit: f5e930b359f52e82fc51fcc989f85880c9e3e921
    https://github.com/scummvm/scummvm/commit/f5e930b359f52e82fc51fcc989f85880c9e3e921
Author: Lars Sundström (l.sundstrom at gmail.com)
Date: 2025-11-07T08:01:33+01:00

Commit Message:
HPL1: Set HPL1_USE_OPENGL only if USE_OPENGL_GAME is set

The HPL1 engine only supports fixed pipeline OpenGL and TinyGL.
The preprocessor flag HPL1_USE_OPENGL was set if USE_OPENGL was set,
however this cause the game to crash on systems only supporting
OpenGLES due to unsupported OpenGL calls.

Define HPL1_USE_OPENGL only if USE_OPENGL_GAME is defined.

Changed paths:
    engines/hpl1/opengl.h


diff --git a/engines/hpl1/opengl.h b/engines/hpl1/opengl.h
index 1b2a47a35f1..b3524fffe86 100644
--- a/engines/hpl1/opengl.h
+++ b/engines/hpl1/opengl.h
@@ -27,7 +27,7 @@
 #include "graphics/opengl/context.h"
 #include "graphics/opengl/system_headers.h"
 
-#if defined(USE_OPENGL) && !USE_FORCED_GLES2 && !USE_FORCED_GLES
+#if defined(USE_OPENGL_GAME) && !USE_FORCED_GLES2 && !USE_FORCED_GLES
 
 #define HPL1_USE_OPENGL
 
@@ -53,5 +53,5 @@ Common::ScopedPtr<Graphics::Surface> createGLViewportScreenshot();
 #define GL_CHECK_FN() \
 	{ ::Hpl1::checkOGLErrors(__func__, __FILE__, __LINE__); }
 
-#endif // defined(USE_OPENGL) && !USE_FORCED_GLES2 && !USE_FORCED_GLES
+#endif // defined(USE_OPENGL_GAME) && !USE_FORCED_GLES2 && !USE_FORCED_GLES
 #endif // HPL1_OPENGL_H




More information about the Scummvm-git-logs mailing list