Add check to see if we need to remove fixed funciton VA in OptDrawState
BUG=skia: Review URL: https://codereview.chromium.org/667033003
This commit is contained in:
parent
bf5473b218
commit
c0651c14ed
@ -48,7 +48,9 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState,
|
||||
this->adjustFromBlendOpts(drawState, &firstColorStageIdx, &firstCoverageStageIdx,
|
||||
&fixedFunctionVAToRemove);
|
||||
// Should not be setting any more FFVA to be removed at this point
|
||||
this->removeFixedFunctionVertexAttribs(fixedFunctionVAToRemove);
|
||||
if (0 != fixedFunctionVAToRemove) {
|
||||
this->removeFixedFunctionVertexAttribs(fixedFunctionVAToRemove);
|
||||
}
|
||||
this->getStageStats(drawState, firstColorStageIdx, firstCoverageStageIdx);
|
||||
this->setOutputStateInfo(drawState, caps, firstCoverageStageIdx, &separateCoverageFromColor);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user