summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderARM64.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-03-27 01:39:53 +0100
committerGitHub <noreply@github.com>2021-03-27 01:39:53 +0100
commit8fab253212e1ba8eee091274821d4519b0f4f6cb (patch)
treeb96408ffb942a4ac577c0e84a2310d3f700d8fee /Source/Core/VideoCommon/VertexLoaderARM64.cpp
parentda534c7d757f90e6801847636777e8147e63b10f (diff)
parent4008b2aca07a13bdc84e067cc41747af45fdccd1 (diff)
Merge pull request #9609 from Pokechu22/fix-WriteVertexArray
Fix PanicAlert when recording FIFOs
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 6e81f7c19e..94c821a26b 100644
--- a/Source/Core/VideoCommon/VertexLoaderARM64.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderARM64.cpp
@@ -497,7 +497,7 @@ void VertexLoaderARM64::GenerateVertexLoader()
m_VtxAttr.color[i].Comp == ColorFormat::RGBA4444)
align = 2;
- s32 offset = GetAddressImm(ARRAY_COLOR + int(i), m_VtxDesc.low.Color[i],
+ s32 offset = GetAddressImm(ARRAY_COLOR0 + int(i), m_VtxDesc.low.Color[i],
EncodeRegTo64(scratch1_reg), align);
ReadColor(m_VtxDesc.low.Color[i], m_VtxAttr.color[i].Comp, offset);
m_native_components |= VB_HAS_COL0 << i;