summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Position.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Position.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp
index 0fe8e7ba72..15d2f6d94e 100644
--- a/Source/Core/VideoCommon/VertexLoader_Position.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp
@@ -41,8 +41,8 @@ void Pos_ReadDirect(VertexLoader* loader)
for (int i = 0; i < N; ++i)
{
const float value = PosScale(src.Read<T>(), scale);
- if (loader->m_counter < 3)
- VertexLoaderManager::position_cache[loader->m_counter][i] = value;
+ if (loader->m_remaining < 3)
+ VertexLoaderManager::position_cache[loader->m_remaining][i] = value;
dst.Write(value);
}
@@ -68,8 +68,8 @@ void Pos_ReadIndex(VertexLoader* loader)
for (int i = 0; i < N; ++i)
{
const float value = PosScale(Common::FromBigEndian(data[i]), scale);
- if (loader->m_counter < 3)
- VertexLoaderManager::position_cache[loader->m_counter][i] = value;
+ if (loader->m_remaining < 3)
+ VertexLoaderManager::position_cache[loader->m_remaining][i] = value;
dst.Write(value);
}