[Scummvm-git-logs] scummvm master -> 07471abda98c633e7f9cd4295f61f87c6ca80648
aquadran
noreply at scummvm.org
Sat Feb 7 18:42:44 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:
07471abda9 TINYGL: Fixed uninitialized 'z' variable warnings
Commit: 07471abda98c633e7f9cd4295f61f87c6ca80648
https://github.com/scummvm/scummvm/commit/07471abda98c633e7f9cd4295f61f87c6ca80648
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2026-02-07T19:42:39+01:00
Commit Message:
TINYGL: Fixed uninitialized 'z' variable warnings
Changed paths:
graphics/tinygl/ztriangle.cpp
diff --git a/graphics/tinygl/ztriangle.cpp b/graphics/tinygl/ztriangle.cpp
index eaf48c89bec..1aceeb49420 100644
--- a/graphics/tinygl/ztriangle.cpp
+++ b/graphics/tinygl/ztriangle.cpp
@@ -487,7 +487,7 @@ void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint
int n;
uint *pz = nullptr;
byte *ps = nullptr;
- uint z;
+ uint z = 0;
n = (x2 >> 16) - x1;
if (kInterpZ) {
pz = pz1 + x1;
@@ -525,7 +525,7 @@ void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint
uint *pz = nullptr;
byte *ps = nullptr;
int pp;
- uint z, r, g, b, a, fog;
+ uint z = 0, r, g, b, a, fog;
int n = (x2 >> 16) - x1;
pp = pp1 + x1;
r = r1;
@@ -578,7 +578,7 @@ void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint
uint *pz = nullptr;
byte *ps = nullptr;
int s, t;
- uint z, r, g, b, a, fog;
+ uint z = 0, r, g, b, a, fog;
int n, pp;
float sz, tz, fz, zinv;
int dsdx, dtdx;
More information about the Scummvm-git-logs
mailing list