diff --git a/src/mbgl/mtl/context.cpp b/src/mbgl/mtl/context.cpp index 81f13ada1..d7d276eeb 100644 --- a/src/mbgl/mtl/context.cpp +++ b/src/mbgl/mtl/context.cpp @@ -382,7 +382,7 @@ bool Context::renderTileClippingMasks(gfx::RenderPass& renderPass, } } if (clipMaskPipelineState) { - encoder->setRenderPipelineState(clipMaskPipelineState.get()); + mtlRenderPass.setRenderPipelineState(clipMaskPipelineState); } else { assert(!"Failed to create render pipeline state for clip masking"); return false;