Zero out display list in hsfdraw to avoid invalid opcode

This commit is contained in:
dbalatoni13 2025-05-12 06:51:36 +02:00
parent 824af61fbb
commit 50b9d02089
3 changed files with 5 additions and 2 deletions

2
.gitmodules vendored
View file

@ -3,7 +3,7 @@
url = https://github.com/AxioDL/musyx
[submodule "extern/aurora"]
path = extern/aurora
url = https://github.com/dbalatoni13/aurora.git
url = https://github.com/encounter/aurora.git
[submodule "extern/libco"]
path = extern/libco
url = https://github.com/higan-emu/libco.git

2
extern/aurora vendored

@ -1 +1 @@
Subproject commit 23522538e13f67957d62a7119bc617700fa0c6ab
Subproject commit e28dbaa569027d8acc63f94125c8ff7caea06f0c

View file

@ -2561,6 +2561,9 @@ static void MDObjMesh(HsfData *arg0, HsfObject *arg1)
Hu3DObjInfoP->drawData = DrawData = HuMemDirectMallocNum(HEAP_DATA, matChgCnt * sizeof(HsfDrawData), mallocNo);
memset(DrawData, 0, matChgCnt * sizeof(HsfDrawData));
DLBufP = DLBufStartP = HuMemDirectMallocNum(HEAP_DATA, DLTotalNum, mallocNo);
#ifdef TARGET_PC
memset(DLBufP, 0, DLTotalNum);
#endif
DCInvalidateRange(DLBufStartP, DLTotalNum);
DLFirstF = 0;
materialBak = (HsfMaterial *)-1;