aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrClearStencilClipOp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/ops/GrClearStencilClipOp.h')
-rw-r--r--src/gpu/ops/GrClearStencilClipOp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/ops/GrClearStencilClipOp.h b/src/gpu/ops/GrClearStencilClipOp.h
index 1364b2365a..ffd2fd9b28 100644
--- a/src/gpu/ops/GrClearStencilClipOp.h
+++ b/src/gpu/ops/GrClearStencilClipOp.h
@@ -55,7 +55,8 @@ private:
void onPrepare(GrOpFlushState*) override {}
void onExecute(GrOpFlushState* state) override {
- state->commandBuffer()->clearStencilClip(fClip, fInsideStencilMask);
+ SkASSERT(state->rtCommandBuffer());
+ state->rtCommandBuffer()->clearStencilClip(fClip, fInsideStencilMask);
}
const GrFixedClip fClip;