| Index: src/gpu/GrOptDrawState.cpp
|
| diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
|
| index 40e0c6ce1fbb4a920caa8a2cf8874e5fd0b97544..77a9fc8dc454a25672d849f9ec8d5fb1f10c2081 100644
|
| --- a/src/gpu/GrOptDrawState.cpp
|
| +++ b/src/gpu/GrOptDrawState.cpp
|
| @@ -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);
|
|
|
|
|