mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoSW: Clear Vertex data before usage
This must have no effect, everything else is usage of uninitialized memory.
This commit is contained in:
@ -34,6 +34,8 @@ SWVertexLoader::~SWVertexLoader()
|
||||
|
||||
void SWVertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType)
|
||||
{
|
||||
memset(&m_Vertex, 0, sizeof(m_Vertex));
|
||||
|
||||
m_attributeIndex = attributeIndex;
|
||||
|
||||
VertexLoaderUID uid(g_main_cp_state.vtx_desc, g_main_cp_state.vtx_attr[m_attributeIndex]);
|
||||
|
Reference in New Issue
Block a user