mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 22:59:47 -06:00
VideoSW: Use Zero for undefined colors.
This commit is contained in:
@ -34,6 +34,9 @@ SWVertexLoader::~SWVertexLoader()
|
|||||||
|
|
||||||
void SWVertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType)
|
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;
|
m_attributeIndex = attributeIndex;
|
||||||
|
|
||||||
VertexLoaderUID uid(g_main_cp_state.vtx_desc, g_main_cp_state.vtx_attr[m_attributeIndex]);
|
VertexLoaderUID uid(g_main_cp_state.vtx_desc, g_main_cp_state.vtx_attr[m_attributeIndex]);
|
||||||
|
Reference in New Issue
Block a user