Index: src/gpu/GrDrawState.cpp |
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp |
index 5e177b8b128b2220d701bbf8ce068ce6dd2f9786..288fa12730850316750b1992446ee7381a860d83 100644 |
--- a/src/gpu/GrDrawState.cpp |
+++ b/src/gpu/GrDrawState.cpp |
@@ -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; |