diff options
Diffstat (limited to 'src/gpu/GrOptDrawState.cpp')
-rw-r--r-- | src/gpu/GrOptDrawState.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp index 6eee0c25a3..20057acee7 100644 --- a/src/gpu/GrOptDrawState.cpp +++ b/src/gpu/GrOptDrawState.cpp @@ -117,7 +117,17 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState, } this->setOutputStateInfo(drawState, blendOpt, caps); -}; + + // let the GP init the batch tracker + if (drawState.hasGeometryProcessor()) { + GrGeometryProcessor::InitBT init; + init.fOutputColor = fDescInfo.fInputColorIsUsed; + init.fOutputCoverage = fDescInfo.fInputCoverageIsUsed; + init.fColor = this->getColor(); + init.fCoverage = this->getCoverage(); + fGeometryProcessor->initBatchTracker(&fBatchTracker, init); + } +} void GrOptDrawState::setOutputStateInfo(const GrDrawState& ds, GrDrawState::BlendOpt blendOpt, |