Skip to content

Commit

Permalink
GPU: Fix an overflow loading old save states.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed May 17, 2020
1 parent d88099e commit 5a5af38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/GPUCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ void GPUCommon::DoState(PointerWrap &p) {
DisplayList_v1 oldDL;
p.Do(oldDL);
// On 32-bit, they're the same, on 64-bit oldDL is bigger.
memcpy(&dls[i], &oldDL, sizeof(DisplayList));
memcpy(&dls[i], &oldDL, sizeof(DisplayList_v1));
// Fix the other fields. Let's hope context wasn't important, it was a pointer.
dls[i].context = 0;
dls[i].offsetAddr = oldDL.offsetAddr;
Expand Down

0 comments on commit 5a5af38

Please sign in to comment.