From b7db3590813cd3e1e9801d7d22d3a008c465d8f1 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 29 Apr 2020 05:26:02 +0200 Subject: XFMemory: SETPOSMTXINFO should be SETPOSTMTXINFO It actually maps to postMtxInfo, not posMtxInfo (which isn't a thing). This is especially confusing because there *are* position matrices (as opposed to post-transform matrices). --- Source/Core/VideoCommon/XFStructs.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Source/Core/VideoCommon/XFStructs.cpp') diff --git a/Source/Core/VideoCommon/XFStructs.cpp b/Source/Core/VideoCommon/XFStructs.cpp index 6403ccf6a4..81ea7a8bba 100644 --- a/Source/Core/VideoCommon/XFStructs.cpp +++ b/Source/Core/VideoCommon/XFStructs.cpp @@ -152,18 +152,18 @@ static void XFRegWritten(int transferSize, u32 baseAddress, DataReader src) nextAddress = XFMEM_SETTEXMTXINFO + 8; break; - case XFMEM_SETPOSMTXINFO: - case XFMEM_SETPOSMTXINFO + 1: - case XFMEM_SETPOSMTXINFO + 2: - case XFMEM_SETPOSMTXINFO + 3: - case XFMEM_SETPOSMTXINFO + 4: - case XFMEM_SETPOSMTXINFO + 5: - case XFMEM_SETPOSMTXINFO + 6: - case XFMEM_SETPOSMTXINFO + 7: + case XFMEM_SETPOSTMTXINFO: + case XFMEM_SETPOSTMTXINFO + 1: + case XFMEM_SETPOSTMTXINFO + 2: + case XFMEM_SETPOSTMTXINFO + 3: + case XFMEM_SETPOSTMTXINFO + 4: + case XFMEM_SETPOSTMTXINFO + 5: + case XFMEM_SETPOSTMTXINFO + 6: + case XFMEM_SETPOSTMTXINFO + 7: g_vertex_manager->Flush(); - VertexShaderManager::SetTexMatrixInfoChanged(address - XFMEM_SETPOSMTXINFO); + VertexShaderManager::SetTexMatrixInfoChanged(address - XFMEM_SETPOSTMTXINFO); - nextAddress = XFMEM_SETPOSMTXINFO + 8; + nextAddress = XFMEM_SETPOSTMTXINFO + 8; break; // -------------- -- cgit v1.2.3