VideoSW: Use Zero for undefined colors.

This commit is contained in:
degasus 2015-12-05 17:16:32 +01:00
parent 7b34319e53
commit f511e539c2
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ SWVertexLoader::~SWVertexLoader()
void SWVertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType)
{
// Super Mario Sunshine requires those to be zero for those debug boxes.
memset(&m_Vertex.color, 0, sizeof(m_Vertex.color));
m_attributeIndex = attributeIndex;
VertexLoaderUID uid(g_main_cp_state.vtx_desc, g_main_cp_state.vtx_attr[m_attributeIndex]);