VideoCommon: force 32-byte alignment for display list address and size

This commit is contained in:
Tillmann Karras 2024-08-14 00:09:51 +01:00
parent 36414bdb55
commit 20f4643c74
1 changed files with 2 additions and 1 deletions

View File

@ -203,7 +203,8 @@ static DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, T& cal
const u32 address = Common::swap32(&data[1]);
const u32 size = Common::swap32(&data[5]);
callback.OnDisplayList(address, size);
// Force 32-byte alignment for both the address and the size.
callback.OnDisplayList(address & ~31, size & ~31);
return 9;
}