Merge pull request #7501 from Techjar/class-memaccess-cleanup

VideoCommon: Clean up class-memaccess warnings
This commit is contained in:
Pierre Bourdon
2018-10-28 23:59:51 +01:00
committed by GitHub
3 changed files with 14 additions and 8 deletions

View File

@ -90,7 +90,7 @@ void SWVertexLoader::vFlush()
for (u32 i = 0; i < IndexGenerator::GetIndexLen(); i++)
{
const u16 index = m_local_index_buffer[i];
memset(&m_vertex, 0, sizeof(m_vertex));
memset(static_cast<void*>(&m_vertex), 0, sizeof(m_vertex));
// Super Mario Sunshine requires those to be zero for those debug boxes.
m_vertex.color = {};