Skip to content

Commit

Permalink
GPU: Correctly flush on cull mode change.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Nov 26, 2018
1 parent 036baf0 commit 1f898e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GPU/GPUCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1706,9 +1706,12 @@ void GPUCommon::Execute_Prim(u32 op, u32 diff) {
currentList->pc += cmdCount * 4;
// flush back cull mode
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_c.Dirty(DIRTY_RASTER_STATE);
drawEngineCommon_->DispatchFlush();
}
}

Expand Down

0 comments on commit 1f898e3

Please sign in to comment.