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.
This commit is contained in:
Pokechu22 2022-04-13 17:03:53 -07:00
parent 04fdadd9d5
commit 6f1350ae51

View File

@ -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;