Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index 62d6818c2ba0b072d737a04bc1d9c9a49be9d16a..83e0926b6d4b3b9dde31c3320bd56a541ca6dc8c 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -502,7 +502,7 @@ bool GrInOrderDrawBuffer::recordStateAndShouldDraw(const GrDrawState& ds, |
fCmdBuffer.pop_back(); |
return false; |
} |
- if (fPrevState && *fPrevState == ss->fState) { |
+ if (fPrevState && fPrevState->combineIfPossible(ss->fState)) { |
fCmdBuffer.pop_back(); |
} else { |
fPrevState = &ss->fState; |