hopefully fix all 3D-related crashes when loading savestates

This commit is contained in:
StapleButter 2018-10-23 20:20:38 +02:00
parent c9a7a0d744
commit 98076f2334
1 changed files with 6 additions and 2 deletions

View File

@ -489,8 +489,12 @@ void DoSavestate(Savestate* file)
ClipMatrixDirty = true;
UpdateClipMatrix();
CurVertexRAM = &VertexRAM[CurRAMBank];
CurPolygonRAM = &PolygonRAM[CurRAMBank];
CurVertexRAM = &VertexRAM[CurRAMBank ? 6144 : 0];
CurPolygonRAM = &PolygonRAM[CurRAMBank ? 2048 : 0];
// better safe than sorry, I guess
// might cause a blank frame but atleast it won't shit itself
RenderNumPolygons = 0;
}
}