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:
donkopunchstania 2010-03-02 04:58:55 +00:00
parent 335303803b
commit f4b5cc5a8b
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}