Index: src/gpu/GrPipelineBuilder.h |
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h |
index ca1adeee1b353fd360644dbbf0ee7dd69f24bbb5..11b427b71b8f22ed3be30fa1114b4cf46fe87712 100644 |
--- a/src/gpu/GrPipelineBuilder.h |
+++ b/src/gpu/GrPipelineBuilder.h |
@@ -198,9 +198,7 @@ public: |
/// @name Stencil |
//// |
- bool hasUserStencilSettings() const { |
- return &GrUserStencilSettings::kUnused != fUserStencilSettings; |
- } |
+ bool hasUserStencilSettings() const { return !fUserStencilSettings->isUnused(); } |
const GrUserStencilSettings* getUserStencil() const { return fUserStencilSettings; } |
/** |