Skip to content

Commit

Permalink
Fix the fix for Thrillville. See #7459
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Nov 26, 2017
1 parent b9bad74 commit f50dadb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GPU/GPUCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,8 @@ void GPUCommon::Execute_ImmVertexAlphaPrim(u32 op, u32 diff) {
// Instead of finding a proper point to flush, we just emit a full rectangle every time one
// is finished.
FlushImm();
// Need to reset immCount_ here. If we do it in FlushImm it could get skipped by gstate_c.skipDrawReason.
immCount_ = 0;
} else {
ERROR_LOG_REPORT_ONCE(imm_draw_prim, G3D, "Immediate draw: Unexpected primitive %d at count %d", prim, immCount_);
}
Expand Down Expand Up @@ -1878,7 +1880,6 @@ void GPUCommon::FlushImm() {
drawEngineCommon_->DispatchFlush();
// TOOD: In the future, make a special path for these.
// drawEngineCommon_->DispatchSubmitImm(immBuffer_, immCount_);
immCount_ = 0;
}

void GPUCommon::ExecuteOp(u32 op, u32 diff) {
Expand Down

0 comments on commit f50dadb

Please sign in to comment.