mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
hopefully fix all 3D-related crashes when loading savestates
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user