[Scummvm-git-logs] scummvm master -> 3126a1b717331614ac123428c0306f5ed740ddd4
Helco
noreply at scummvm.org
Sun Feb 8 19:28:40 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:
3126a1b717 FREESCAPE: Fix emscripten compilation
Commit: 3126a1b717331614ac123428c0306f5ed740ddd4
https://github.com/scummvm/scummvm/commit/3126a1b717331614ac123428c0306f5ed740ddd4
Author: Helco (hermann.noll at hotmail.com)
Date: 2026-02-08T20:28:21+01:00
Commit Message:
FREESCAPE: Fix emscripten compilation
Co-authored-by: neuromancer <gustavo.grieco at gmail.com>
Changed paths:
engines/freescape/gfx_opengl_shaders.cpp
diff --git a/engines/freescape/gfx_opengl_shaders.cpp b/engines/freescape/gfx_opengl_shaders.cpp
index d84ce9069fd..e4ea1a10b04 100644
--- a/engines/freescape/gfx_opengl_shaders.cpp
+++ b/engines/freescape/gfx_opengl_shaders.cpp
@@ -573,10 +573,12 @@ void OpenGLShaderRenderer::renderFace(const Common::Array<Math::Vector3d> &verti
_triangleShader->use();
_triangleShader->setUniform("mvpMatrix", _mvpMatrix);
+ #if !defined(EMSCRIPTEN)
if (_debugRenderWireframe) {
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
useColor(0, 255, 0);
}
+ #endif
if (vertices.size() == 2) {
const Math::Vector3d &v1 = vertices[1];
@@ -594,8 +596,10 @@ void OpenGLShaderRenderer::renderFace(const Common::Array<Math::Vector3d> &verti
glDrawArrays(GL_LINES, 0, 2);
glLineWidth(1);
+ #if !defined(EMSCRIPTEN)
if (_debugRenderWireframe)
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ #endif
return;
}
@@ -637,8 +641,10 @@ void OpenGLShaderRenderer::renderFace(const Common::Array<Math::Vector3d> &verti
glDrawArrays(GL_LINES, 0, 2);
}
+ #if !defined(EMSCRIPTEN)
if (_debugRenderWireframe)
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ #endif
}
void OpenGLShaderRenderer::depthTesting(bool enabled) {
More information about the Scummvm-git-logs
mailing list