mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-01 22:31:58 +00:00
Reset gstate_c.offsetAddr on RET. Fixes some "CALL to illegal address"
(as seen in Flatout for example).
This commit is contained in:
parent
6bfb8bea56
commit
cbbc4e2c9e
@ -484,7 +484,6 @@ void GPUCommon::ExecuteOp(u32 op, u32 diff) {
|
||||
|
||||
case GE_CMD_OFFSETADDR:
|
||||
gstate_c.offsetAddr = data << 8;
|
||||
// ???
|
||||
break;
|
||||
|
||||
case GE_CMD_ORIGIN:
|
||||
@ -533,6 +532,9 @@ void GPUCommon::ExecuteOp(u32 op, u32 diff) {
|
||||
ERROR_LOG_REPORT(G3D, "Invalid DL PC %08x on return", currentList->pc);
|
||||
gpuState = GPUSTATE_ERROR;
|
||||
}
|
||||
|
||||
// Reset gstate_c.offsetAddr, Flatout seems to expect this.
|
||||
gstate_c.offsetAddr = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user