fix alignment of tempMultiplyMatrix and currentMatrix[4] in GeometryEngineLegacySave. Fixes #657. It would be better to fix this perhaps by making NDSMatrix a type that has the alignas(16) put on it while inheriting from std::array<u32,16> perhaps, so this mistake is not possible?

This commit is contained in:
zeromus 2023-04-21 15:18:32 -04:00
parent c97ba8fb16
commit 6b7559c71b
1 changed files with 2 additions and 2 deletions

View File

@ -666,8 +666,8 @@ struct GeometryEngineLegacySave
u32 texPalette;
u32 mtxCurrentMode;
NDSMatrix tempMultiplyMatrix;
NDSMatrix currentMatrix[4];
CACHE_ALIGN NDSMatrix tempMultiplyMatrix;
CACHE_ALIGN NDSMatrix currentMatrix[4];
u8 mtxLoad4x4PendingIndex;
u8 mtxLoad4x3PendingIndex;
u8 mtxMultiply4x4TempIndex;