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

lephilousophe noreply at scummvm.org
Sat Feb 7 18:31:48 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:
be0f3bb638 TINYGL: Fixed uninitialized 'texture' variable warnings


Commit: be0f3bb638f19972a39cf2df06db4e251c61fc53
    https://github.com/scummvm/scummvm/commit/be0f3bb638f19972a39cf2df06db4e251c61fc53
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2026-02-07T19:30:37+01:00

Commit Message:
TINYGL: Fixed uninitialized 'texture' variable warnings

Changed paths:
    graphics/tinygl/ztriangle.cpp


diff --git a/graphics/tinygl/ztriangle.cpp b/graphics/tinygl/ztriangle.cpp
index f3c24a70093..eaf48c89bec 100644
--- a/graphics/tinygl/ztriangle.cpp
+++ b/graphics/tinygl/ztriangle.cpp
@@ -208,7 +208,7 @@ template <bool kSmoothMode, bool kDepthWrite, bool kFogMode, bool kAlphaTestEnab
 void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint *p2,
                                FrameBuffer::ColorMode colorMode, bool kInterpZ,
                                bool kInterpST, bool kInterpSTZ, bool stippleEnabled) {
-	const TexelBuffer *texture;
+	const TexelBuffer *texture = nullptr;
 	float fdzdx = 0, fndzdx = 0, ndszdx = 0, ndtzdx = 0;
 
 	ZBufferPoint *tp, *pr1 = 0, *pr2 = 0, *l1 = 0, *l2 = 0;




More information about the Scummvm-git-logs mailing list