From 6f1350ae51fec828c3440721588d10cccd893998 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 13 Apr 2022 17:03:53 -0700 Subject: [PATCH] VertexLoaderARM64: Fix z-freeze position matrix index Before, it would always write to index 0 (which is unused). Now it writes to the correct index. --- Source/Core/VideoCommon/VertexLoaderARM64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/VertexLoaderARM64.cpp b/Source/Core/VideoCommon/VertexLoaderARM64.cpp index 330deef548..7c47f153a6 100644 --- a/Source/Core/VideoCommon/VertexLoaderARM64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderARM64.cpp @@ -423,7 +423,7 @@ void VertexLoaderARM64::GenerateVertexLoader() CMP(count_reg, 3); FixupBranch dont_store = B(CC_GT); MOVP2R(EncodeRegTo64(scratch2_reg), VertexLoaderManager::position_matrix_index); - STR(IndexType::Unsigned, scratch1_reg, EncodeRegTo64(scratch2_reg), 0); + STR(scratch1_reg, EncodeRegTo64(scratch2_reg), ArithOption(count_reg, true)); SetJumpTarget(dont_store); m_native_vtx_decl.posmtx.components = 4;