Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 77a18677a6b5f93785e37a862280810889eaafbc..eabdfd2059c93bf91abb5919e43a4ad85afa88dd 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -397,6 +397,9 @@ private: |
bool coverageIgnored() const { return fBatch.fCoverageIgnored; } |
bool onCombineIfPossible(GrBatch* t) override { |
+ //if (!this->pipeline()->isEqual(*t->pipeline())) { |
+ // return false; |
+ //} |
// StrokeRectBatch* that = t->cast<StrokeRectBatch>(); |
// NonAA stroke rects cannot batch right now |
@@ -762,6 +765,10 @@ private: |
bool coverageIgnored() const { return fBatch.fCoverageIgnored; } |
bool onCombineIfPossible(GrBatch* t) override { |
+ if (!this->pipeline()->isEqual(*t->pipeline())) { |
+ return false; |
+ } |
+ |
DrawVerticesBatch* that = t->cast<DrawVerticesBatch>(); |
if (!this->batchablePrimitiveType() || this->primitiveType() != that->primitiveType()) { |