diff options
Diffstat (limited to 'src/GPU3D_Soft.h')
-rw-r--r-- | src/GPU3D_Soft.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GPU3D_Soft.h b/src/GPU3D_Soft.h index 8fb4201..de65944 100644 --- a/src/GPU3D_Soft.h +++ b/src/GPU3D_Soft.h @@ -178,7 +178,7 @@ private: { // Z-buffering: linear interpolation // still doesn't quite match hardware... - s32 base, disp, factor; + s32 base = 0, disp = 0, factor = 0; if (z0 < z1) { @@ -337,7 +337,7 @@ private: constexpr s32 XVal() const { - s32 ret; + s32 ret = 0; if (Negative) ret = x0 - (dx >> 18); else ret = x0 + (dx >> 18); |