mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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:
parent
04fdadd9d5
commit
6f1350ae51
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user