mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 17:19:42 +00:00
Fix some missing GPUCommon state.
This commit is contained in:
parent
5a20d9fc2a
commit
fb7cabcccf
@ -142,6 +142,23 @@ void GPUCommon::PreExecuteOp(u32 op, u32 diff) {
|
||||
void GPUCommon::DoState(PointerWrap &p) {
|
||||
p.Do(dlIdGenerator);
|
||||
p.Do<DisplayList>(dlQueue);
|
||||
int currentID = currentList == NULL ? 0 : currentList->id;
|
||||
p.Do(currentID);
|
||||
if (currentID == 0) {
|
||||
currentList = 0;
|
||||
} else {
|
||||
for (auto it = dlQueue.begin(), end = dlQueue.end(); it != end; ++it) {
|
||||
if (it->id == currentID) {
|
||||
currentList = &*it;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
p.Do(interruptRunning);
|
||||
p.Do(prev);
|
||||
p.Do(stack);
|
||||
p.Do(stackptr);
|
||||
p.Do(finished);
|
||||
p.DoMarker("GPUCommon");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user