From f4b5cc5a8b45b5ce69242576e28ae0fb790c846d Mon Sep 17 00:00:00 2001 From: donkopunchstania Date: Tue, 2 Mar 2010 04:58:55 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp index 4e5be78a53..cbf576ddcd 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp @@ -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