Crashfix in the framedump recorder

This commit is contained in:
Henrik Rydgård committed 2026-10-20 16:32:44 +02:00
1 parent 394c05f414
commit f36b458bbf
1 file changed
+11 -2
+11 -2
View File
@@ -527,10 +527,19 @@ void Recorder::FlushPrimState(int vcount) {
}
}
const void *verts = Memory::GetPointerOrException(gstate_c.vertexAddr);
if (!Memory::IsValidAddress(gstate_c.vertexAddr)) {
ERROR_LOG(Log::G3D, "Recorder: Invalid vertex address: 0x%08X", gstate_c.vertexAddr);
return;
}
const void *verts = Memory::GetPointerUnchecked(gstate_c.vertexAddr);
const void *indices = nullptr;
if ((gstate.vertType & GE_VTYPE_IDX_MASK) != GE_VTYPE_IDX_NONE) {
indices = Memory::GetPointerOrException(gstate_c.indexAddr);
if (Memory::IsValidAddress(gstate_c.indexAddr)) {
ERROR_LOG(Log::G3D, "Recorder: Invalid index address: 0x%08X", gstate_c.indexAddr);
return;
}
indices = Memory::GetPointerUnchecked(gstate_c.indexAddr);
}
u32 ibytes = 0;