Index: src/gpu/GrStencilSettings.cpp |
diff --git a/src/gpu/GrStencilSettings.cpp b/src/gpu/GrStencilSettings.cpp |
index ae8b03b97687ca556adf05d16810da1cc21dbb5a..d3216db0ce65c280c806018fc3a0e98adc161b1e 100644 |
--- a/src/gpu/GrStencilSettings.cpp |
+++ b/src/gpu/GrStencilSettings.cpp |
@@ -170,7 +170,7 @@ void GrStencilSettings::Face::reset(const GrUserStencilSettings::Face& user, boo |
SkASSERT(user.fTest < (GrUserStencilTest)kGrUserStencilTestCount); |
SkASSERT(user.fPassOp < (GrUserStencilOp)kGrUserStencilOpCount); |
SkASSERT(user.fFailOp < (GrUserStencilOp)kGrUserStencilOpCount); |
- SkASSERT(numStencilBits <= 16); |
+ SkASSERT(numStencilBits > 0 && numStencilBits <= 16); |
int clipBit = 1 << (numStencilBits - 1); |
int userMask = clipBit - 1; |