Index: src/gpu/GrStencilSettings.cpp |
diff --git a/src/gpu/GrStencilSettings.cpp b/src/gpu/GrStencilSettings.cpp |
index d3216db0ce65c280c806018fc3a0e98adc161b1e..cec8bee97bde06b0d00a617f92624f0d1b6eb7e4 100644 |
--- a/src/gpu/GrStencilSettings.cpp |
+++ b/src/gpu/GrStencilSettings.cpp |
@@ -28,6 +28,7 @@ void GrStencilSettings::reset(const GrUserStencilSettings& user, bool hasStencil |
int numStencilBits) { |
uint16_t frontFlags = user.fFrontFlags[hasStencilClip]; |
if (frontFlags & kSingleSided_StencilFlag) { |
+ SkASSERT(frontFlags == user.fBackFlags[hasStencilClip]); |
fFlags = frontFlags; |
if (!this->isDisabled()) { |
fFront.reset(user.fFront, hasStencilClip, numStencilBits); |