Check texture attribute loader before adding it to vertex loader.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5150 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
335303803b
commit
f4b5cc5a8b
|
@ -252,6 +252,7 @@ void VertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType)
|
|||
|
||||
m_texCoordLoader[i] = tableReadTexCoord[desc][format][elements];
|
||||
m_VertexSize += tableReadTexCoordVertexSize[desc][format][elements];
|
||||
if (m_texCoordLoader[i])
|
||||
AddAttributeLoader(LoadTexCoord, i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue