mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
Fix all uninitialized variable warnings (C26495)
This commit is contained in:
@ -25,6 +25,6 @@ protected:
|
||||
void SetFormat(u8 attributeIndex, u8 primitiveType);
|
||||
void ParseVertex(const PortableVertexDeclaration& vdec, int index);
|
||||
|
||||
InputVertexData m_vertex;
|
||||
InputVertexData m_vertex{};
|
||||
SetupUnit m_setup_unit;
|
||||
};
|
||||
|
@ -8,12 +8,12 @@
|
||||
|
||||
class SetupUnit
|
||||
{
|
||||
u8 m_PrimType;
|
||||
int m_VertexCounter;
|
||||
u8 m_PrimType = 0;
|
||||
int m_VertexCounter = 0;
|
||||
|
||||
OutputVertexData m_Vertices[3];
|
||||
OutputVertexData* m_VertPointer[3];
|
||||
OutputVertexData* m_VertWritePointer;
|
||||
OutputVertexData* m_VertPointer[3]{};
|
||||
OutputVertexData* m_VertWritePointer{};
|
||||
|
||||
void SetupQuad();
|
||||
void SetupTriangle();
|
||||
|
@ -11,7 +11,7 @@ class Vec3
|
||||
public:
|
||||
float x, y, z;
|
||||
|
||||
Vec3() {}
|
||||
Vec3() = default;
|
||||
explicit Vec3(float f) { x = y = z = f; }
|
||||
explicit Vec3(const float* f)
|
||||
{
|
||||
|
Reference in New Issue
Block a user