diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2010-03-02 04:58:55 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2010-03-02 04:58:55 +0000 |
| commit | f4b5cc5a8b45b5ce69242576e28ae0fb790c846d (patch) | |
| tree | f2f6aefd9633e08169697236a4655380a03350ad /Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp | |
| parent | 335303803ba33d48348587c9ed241663ba8e89fb (diff) | |
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
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/VertexLoader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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
|
