summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2023-02-15 19:18:39 -0800
committerPokechu22 <Pokechu022@gmail.com>2023-02-15 19:18:39 -0800
commit8802f96b7ed3404fe1162e5e663c70306c7469ac (patch)
tree345d53e5b3894de1c74450daf4206f5899c3ef27 /Source/Core/VideoBackends/Software
parent089eab96d721dc65e60090f545d41dd6bd5925e9 (diff)
Fix uninitialized variable warnings (C26495)
Diffstat (limited to 'Source/Core/VideoBackends/Software')
-rw-r--r--Source/Core/VideoBackends/Software/Tev.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.h b/Source/Core/VideoBackends/Software/Tev.h
index 28ec84600e..5b48f60346 100644
--- a/Source/Core/VideoBackends/Software/Tev.h
+++ b/Source/Core/VideoBackends/Software/Tev.h
@@ -122,9 +122,9 @@ class Tev
static constexpr s16 V7_8 = 223;
static constexpr s16 V1 = 255;
- u8 AlphaBump;
- u8 IndirectTex[4][4];
- TextureCoordinateType TexCoord;
+ u8 AlphaBump = 0;
+ u8 IndirectTex[4][4]{};
+ TextureCoordinateType TexCoord{};
const Common::EnumMap<TevColorRef, TevColorArg::Zero> m_ColorInputLUT{
TevColorRef::Color(Reg[TevOutput::Prev]), // prev.rgb
@@ -213,13 +213,13 @@ class Tev
void Indirect(unsigned int stageNum, s32 s, s32 t);
public:
- s32 Position[3];
- u8 Color[2][4]; // must be RGBA for correct swap table ordering
- TextureCoordinateType Uv[8];
- s32 IndirectLod[4];
- bool IndirectLinear[4];
- s32 TextureLod[16];
- bool TextureLinear[16];
+ s32 Position[3]{};
+ u8 Color[2][4]{}; // must be RGBA for correct swap table ordering
+ TextureCoordinateType Uv[8]{};
+ s32 IndirectLod[4]{};
+ bool IndirectLinear[4]{};
+ s32 TextureLod[16]{};
+ bool TextureLinear[16]{};
enum
{