diff --git a/src/mbgl/renderer/paint_parameters.cpp b/src/mbgl/renderer/paint_parameters.cpp index 0badb071c..65d404368 100644 --- a/src/mbgl/renderer/paint_parameters.cpp +++ b/src/mbgl/renderer/paint_parameters.cpp @@ -157,6 +157,7 @@ void PaintParameters::clearTileClippingMasks() { } } +#if MLN_RENDER_BACKEND_METAL namespace { const auto clipMaskStencilMode = gfx::StencilMode{ /*.test=*/gfx::StencilMode::Always(), @@ -167,11 +168,12 @@ const auto clipMaskStencilMode = gfx::StencilMode{ /*.pass=*/gfx::StencilOpType::Replace, }; const auto clipMaskDepthMode = gfx::DepthMode{ - .func = gfx::DepthFunctionType::Always, - .mask = gfx::DepthMaskType::ReadOnly, - .range = {0, 1}, + /*.func=*/gfx::DepthFunctionType::Always, + /*.mask=*/gfx::DepthMaskType::ReadOnly, + /*.range=*/{0, 1}, }; } // namespace +#endif // MLN_RENDER_BACKEND_METAL template void PaintParameters::renderTileClippingMasks(TIter beg, TIter end, GetTileIDFunc&& f, bool clear) {