summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderARM64.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2021-09-30 14:27:53 -0400
committerShawn Hoffman <godisgovernment@gmail.com>2021-09-30 14:27:53 -0400
commite11fdaabf1611d40acc67c3d0d11c409cf041dcf (patch)
treed2407d417c6559b68a647265005e144ea6156ec7 /Source/Core/VideoCommon/VertexLoaderARM64.cpp
parent40d9694bd047e99ecd68c9e6c77ab7fbeabe753a (diff)
fix unused variable warning
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderARM64.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderARM64.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderARM64.cpp b/Source/Core/VideoCommon/VertexLoaderARM64.cpp
index e47dd6a74e..71fc9e054c 100644
--- a/Source/Core/VideoCommon/VertexLoaderARM64.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderARM64.cpp
@@ -461,7 +461,7 @@ void VertexLoaderARM64::GenerateVertexLoader()
const int limit = m_VtxAttr.g0.NormalElements == NormalComponentCount::NBT ? 3 : 1;
s32 offset = -1;
- for (int i = 0; i < (m_VtxAttr.g0.NormalElements == NormalComponentCount::NBT ? 3 : 1); i++)
+ for (int i = 0; i < limit; i++)
{
if (!i || m_VtxAttr.g0.NormalIndex3)
{