Fix restore in AVMR to have correct coverage count.
BUG=skia: Review URL: https://codereview.chromium.org/638173003
This commit is contained in:
parent
e099dd73df
commit
acd3e6d342
@ -515,6 +515,7 @@ void GrDrawState::AutoViewMatrixRestore::restore() {
|
||||
fDrawState->fViewMatrix = fViewMatrix;
|
||||
SkASSERT(fDrawState->numColorStages() >= fNumColorStages);
|
||||
int numCoverageStages = fSavedCoordChanges.count() - fNumColorStages;
|
||||
numCoverageStages -= fHasGeometryProcessor ? 1 : 0;
|
||||
SkASSERT(fDrawState->numCoverageStages() >= numCoverageStages);
|
||||
|
||||
int i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user