| Index: src/gpu/GrOptDrawState.cpp
|
| diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
|
| index b7875968135b4703fb323e0d995d5acf33f33b07..d95bd3b7c42017a2526f4fd3e7fcb662bed8502e 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,
|
|
|