[Scummvm-git-logs] scummvm master -> 99feb766e7cf1df428385ff5f2cb9f65de9a4c53

bluegr noreply at scummvm.org
Sun Aug 2 23:18:23 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:
99feb766e7 WINTERMUTE: Fix compilation under MSVC


Commit: 99feb766e7cf1df428385ff5f2cb9f65de9a4c53
    https://github.com/scummvm/scummvm/commit/99feb766e7cf1df428385ff5f2cb9f65de9a4c53
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-08-03T02:18:10+03:00

Commit Message:
WINTERMUTE: Fix compilation under MSVC

borderWidth was considered to be potentially uninitialized in MSVC

Changed paths:
    engines/wintermute/base/gfx/opengl/meshx_opengl_shader.cpp


diff --git a/engines/wintermute/base/gfx/opengl/meshx_opengl_shader.cpp b/engines/wintermute/base/gfx/opengl/meshx_opengl_shader.cpp
index 9333f338850..452e210f47f 100644
--- a/engines/wintermute/base/gfx/opengl/meshx_opengl_shader.cpp
+++ b/engines/wintermute/base/gfx/opengl/meshx_opengl_shader.cpp
@@ -301,7 +301,7 @@ bool XMeshOpenGLShader::setupEffect(Material *material, bool secondPassNeeded) {
 		DXVector4 ambientColor;
 		param->getValue(ambientColor);
 		Math::Vector4d ambient(ambientColor);
-		float borderWidth;
+		float borderWidth = 0.0f;
 		if (effectId == 0x589E1D5C) {
 			borderWidth = 6.0f;
 			ambient = { 1.0, 1.0, 1.0, 1.0 };




More information about the Scummvm-git-logs mailing list