summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Position.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2023-01-17 23:30:29 +0100
committerGitHub <noreply@github.com>2023-01-17 23:30:29 +0100
commita7d16831494ec1c0ca15638b5b600e9028fb4541 (patch)
tree88313b52a2359309339d1de62b8747e3d75ef01f /Source/Core/VideoCommon/VertexLoader_Position.cpp
parent686ac363ba8cbd395f173a4eefd8694c5dab3126 (diff)
parent3910bdd68b227bbf62c9822d173879e4dee3ccb3 (diff)
Merge pull request #11432 from Pokechu22/generic-vertex-loader-test-error
VertexLoader: Fix loading tangent/binormal caches with NormalIndex3
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Position.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp
index 42ebf4985f..946dacdde1 100644
--- a/Source/Core/VideoCommon/VertexLoader_Position.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp
@@ -62,7 +62,7 @@ void Pos_ReadIndex(VertexLoader* loader)
for (int i = 0; i < N; ++i)
{
const float value = PosScale(Common::FromBigEndian(data[i]), scale);
- if (loader->m_remaining < 3)
+ if (loader->m_remaining < 3 && !loader->m_vertexSkip)
VertexLoaderManager::position_cache[loader->m_remaining][i] = value;
DataWrite(value);
}