mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GPU: Correctly flush on cull mode change.
Fixes #11593 and fixes #11591.
This commit is contained in:
parent
036baf04d0
commit
1f898e3b70
1 changed files with 4 additions and 1 deletions
|
@ -1706,9 +1706,12 @@ bail:
|
||||||
currentList->pc += cmdCount * 4;
|
currentList->pc += cmdCount * 4;
|
||||||
// flush back cull mode
|
// flush back cull mode
|
||||||
if (cullMode != gstate.getCullMode()) {
|
if (cullMode != gstate.getCullMode()) {
|
||||||
|
// We rewrote everything to the old cull mode, so flush first.
|
||||||
|
drawEngineCommon_->DispatchFlush();
|
||||||
|
|
||||||
|
// Now update things for next time.
|
||||||
gstate.cmdmem[GE_CMD_CULL] ^= 1;
|
gstate.cmdmem[GE_CMD_CULL] ^= 1;
|
||||||
gstate_c.Dirty(DIRTY_RASTER_STATE);
|
gstate_c.Dirty(DIRTY_RASTER_STATE);
|
||||||
drawEngineCommon_->DispatchFlush();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue