Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 0eb8c5b758091a1370591da1a0cb932b7c9f08f0..127d9ec97b56cacef7523edb93d1696609ff5e3f 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -942,10 +942,10 @@ void GrContext::drawVertices(const GrPaint& paint, |
int indexCount) { |
SK_TRACE_EVENT0("GrContext::drawVertices"); |
- GrDrawTarget::AutoReleaseGeometry geo; |
- |
AutoRestoreEffects are; |
AutoCheckFlush acf(this); |
+ GrDrawTarget::AutoReleaseGeometry geo; // must be inside AutoCheckFlush scope |
+ |
GrDrawTarget* target = this->prepareToDraw(&paint, BUFFERED_DRAW, &are, &acf); |
GrDrawState* drawState = target->drawState(); |