Fix the fix for Thrillville. See #7459

This commit is contained in:
Henrik Rydgård 2017-11-26 21:02:33 +01:00
parent b9bad7431a
commit f50dadb284

View File

@ -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_);
}
@ -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) {