From a770b79551626590a57b114a7751c53394f7eb4b Mon Sep 17 00:00:00 2001 From: Adrian Cojocaru Date: Fri, 5 Jun 2026 19:59:14 +0300 Subject: [PATCH] core: Fix specialized location indicator puck scaling (#4327) --- src/mbgl/renderer/layers/render_location_indicator_layer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mbgl/renderer/layers/render_location_indicator_layer.cpp b/src/mbgl/renderer/layers/render_location_indicator_layer.cpp index 9f385f5dd..05c23403c 100644 --- a/src/mbgl/renderer/layers/render_location_indicator_layer.cpp +++ b/src/mbgl/renderer/layers/render_location_indicator_layer.cpp @@ -466,7 +466,7 @@ public: textureInfo.assign(*sharedImage); updated = true; } - } else if (textureInfo.image) { + } else if (textureInfo.image || textureInfo.texture) { textureInfo.reset(); updated = true; } @@ -706,7 +706,7 @@ protected: Point verticalShift = hatShadowShiftVector(params.puckPosition, params); const float horizontalScaleFactor = (1.0f - params.perspectiveCompensation) + - util::clamp(pixelSizeToWorldSizeH(params.puckPosition, s), 0.8f, 100.1f) * + util::clamp(pixelSizeToWorldSizeH(params.puckPosition, s), 0.8f, 10.1f) * params.perspectiveCompensation; // Compensation factor for the perspective deformation // ^ clamping this to 0.8 to avoid growing the puck too much close to the camera.