Merge pull request #10141 from shuffle2/arm64-buildfix

fix unused variable warning
This commit is contained in:
Mai M 2021-09-30 14:49:42 -04:00 committed by GitHub
commit 890a5ed99a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{