mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoSW: Clear Vertex data before usage
This must have no effect, everything else is usage of uninitialized memory.
This commit is contained in:
parent
aabcd441d9
commit
5d63a08a50
3 changed files with 9 additions and 1 deletions
|
@ -21,6 +21,12 @@ void SetupUnit::Init(u8 primitiveType)
|
|||
m_VertWritePointer = m_VertPointer[0];
|
||||
}
|
||||
|
||||
OutputVertexData* SetupUnit::GetVertex()
|
||||
{
|
||||
memset(m_VertWritePointer, 0, sizeof(*m_VertWritePointer));
|
||||
return m_VertWritePointer;
|
||||
}
|
||||
|
||||
void SetupUnit::SetupVertex()
|
||||
{
|
||||
switch (m_PrimType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue