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:
egdaniel 2014-10-21 07:47:10 -07:00 committed by Commit bot
parent bf5473b218
commit c0651c14ed

View File

@ -48,7 +48,9 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState,
this->adjustFromBlendOpts(drawState, &firstColorStageIdx, &firstCoverageStageIdx, this->adjustFromBlendOpts(drawState, &firstColorStageIdx, &firstCoverageStageIdx,
&fixedFunctionVAToRemove); &fixedFunctionVAToRemove);
// Should not be setting any more FFVA to be removed at this point // 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->getStageStats(drawState, firstColorStageIdx, firstCoverageStageIdx);
this->setOutputStateInfo(drawState, caps, firstCoverageStageIdx, &separateCoverageFromColor); this->setOutputStateInfo(drawState, caps, firstCoverageStageIdx, &separateCoverageFromColor);