Merge pull request #3358 from degasus/test

VideoSW: Clear normal vertex data.
This commit is contained in:
Ryan Houdek 2015-12-19 05:16:16 -05:00
commit c683b54921

View File

@ -196,6 +196,7 @@ void SWVertexLoader::LoadVertex()
// transform this vertex so that it can be used for rasterization (outVertex)
OutputVertexData* outVertex = m_SetupUnit->GetVertex();
TransformUnit::TransformPosition(&m_Vertex, outVertex);
memset(&outVertex->normal, 0, sizeof(outVertex->normal));
if (g_main_cp_state.vtx_desc.Normal != NOT_PRESENT)
{
TransformUnit::TransformNormal(&m_Vertex, m_CurrentVat->g0.NormalElements, outVertex);