diff options
| author | StapleButter <thetotalworm@gmail.com> | 2018-10-23 20:20:38 +0200 | 
|---|---|---|
| committer | StapleButter <thetotalworm@gmail.com> | 2018-10-23 20:20:38 +0200 | 
| commit | 98076f2334388f7774514dbb8a3ec3d3d7c031f9 (patch) | |
| tree | fb2d9f044f8d1a6ca7a3b6e529b3c573ea40220b | |
| parent | c9a7a0d74418e8f4f9419704f96f8336ed1a8587 (diff) | |
hopefully fix all 3D-related crashes when loading savestates
| -rw-r--r-- | src/GPU3D.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index d094537..47843e4 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -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;      }  }  |