Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 77636ea6c309a00bcb9be82940ca11876f712d48..1fd113dce36b99bb801c84f8092b69451ebce4cf 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -59,7 +59,7 @@ |
AutoCheckFlush(GrDrawingManager* drawingManager) : fDrawingManager(drawingManager) { |
SkASSERT(fDrawingManager); |
} |
- ~AutoCheckFlush() { fDrawingManager->flushIfNecessary(); } |
+ ~AutoCheckFlush() { fDrawingManager->getContext()->flushIfNecessary(); } |
private: |
GrDrawingManager* fDrawingManager; |