aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r--src/gpu/GrDrawTarget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index d03130d18e..717cd5d1bb 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -216,6 +216,9 @@ void GrDrawTarget::prepareBatches(GrBatchFlushState* flushState) {
}
void GrDrawTarget::drawBatches(GrBatchFlushState* flushState) {
+ if (0 == fRecordedBatches.count()) {
+ return;
+ }
// Draw all the generated geometry.
SkRandom random;
GrRenderTarget* currentRT = nullptr;