aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-03-02 11:23:07 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-02 11:23:07 -0800
commitcc1ac862752031fa3efd7429800a0f791c24e5cf (patch)
tree5ca8491399a3f1a45c2a6f8e7c2a3019b733c583
parent8f9e81684fbc9c2c9660137cdfbe30902b4380f1 (diff)
small bug fix for batch asserts
-rw-r--r--src/gpu/GrInOrderDrawBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp
index 1ff018d98f..d89dd430d7 100644
--- a/src/gpu/GrInOrderDrawBuffer.cpp
+++ b/src/gpu/GrInOrderDrawBuffer.cpp
@@ -395,7 +395,7 @@ void GrInOrderDrawBuffer::onDrawBatch(GrBatch* batch,
}
// Check if there is a Batch Draw we can batch with
- if (Cmd::kDrawBatch_Cmd != fCmdBuffer.back().type()) {
+ if (Cmd::kDrawBatch_Cmd != fCmdBuffer.back().type() || !fDrawBatch) {
fDrawBatch = GrNEW_APPEND_TO_RECORDER(fCmdBuffer, DrawBatch, (batch, &fBatchTarget));
this->recordTraceMarkersIfNecessary(fDrawBatch);
return;