mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
Fix all uninitialized variable warnings (C26495)
This commit is contained in:
parent
525e6b2194
commit
78bfd25964
111 changed files with 638 additions and 651 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue