Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 322ea87dcb88017904d13777aebbeb6d4535230a..85d53119b614891fd8bb6d910794e1c8de8edd15 100755 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -1738,7 +1738,8 @@ GrDrawTarget* GrContext::prepareToDraw(const GrPaint* paint, |
AutoCheckFlush* acf) { |
// All users of this draw state should be freeing up all effects when they're done. |
// Otherwise effects that own resources may keep those resources alive indefinitely. |
- SkASSERT(0 == fDrawState->numColorStages() && 0 == fDrawState->numCoverageStages()); |
+ SkASSERT(0 == fDrawState->numColorStages() && 0 == fDrawState->numCoverageStages() && |
+ !fDrawState->hasGeometryProcessor()); |
if (NULL == fGpu) { |
return NULL; |