mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 15:40:16 +00:00
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,7 +252,8 @@ void VertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType)
|
||||
|
||||
m_texCoordLoader[i] = tableReadTexCoord[desc][format][elements];
|
||||
m_VertexSize += tableReadTexCoordVertexSize[desc][format][elements];
|
||||
AddAttributeLoader(LoadTexCoord, i);
|
||||
if (m_texCoordLoader[i])
|
||||
AddAttributeLoader(LoadTexCoord, i);
|
||||
}
|
||||
|
||||
// special case if only pos and tex coord 0 and tex coord input is AB11
|
||||
|
Loading…
x
Reference in New Issue
Block a user