diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2023-11-25 16:42:30 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2023-12-02 15:54:52 -0800 |
| commit | 4116344785030b5d164e97e5ba3c6cc48b5a127b (patch) | |
| tree | 9d46b3cef7cbad3152cffea0f09b6dd6c7f61b08 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | 36796abc089357a74dc10851190522137bb1d5ed (diff) | |
VertexLoader: Remove unnecessary calls to VertexLoader_TextCoord::GetDummyFunction
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index 89965f8710..1d8a1f8e88 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -220,12 +220,13 @@ void VertexLoader::CompileVertexTranslator() { // if there's more tex coords later, have to write a dummy call bool has_more = false; - for (size_t j = 0; j < m_VtxDesc.high.TexCoord.Size(); ++j) + for (size_t j = i + 1; j < m_VtxDesc.high.TexCoord.Size(); ++j) { if (m_VtxDesc.high.TexCoord[j] != VertexComponentFormat::NotPresent) { has_more = true; - WriteCall(VertexLoader_TextCoord::GetDummyFunction()); // important to get indices right! + // Keep tcIndex in sync so that the correct array is used later + WriteCall(VertexLoader_TextCoord::GetDummyFunction()); break; } else if (m_VtxDesc.low.TexMatIdx[j]) |
