From 7fefe177ea9ebd8e7ca5e5e8b72e868fc52a8215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rmungandrk?= Date: Mon, 9 Mar 2026 02:03:51 -0400 Subject: [PATCH] fix: Ignoring result from pure array method --- src/shaders/symbol.vertex.glsl | 10 +++++----- src/style-spec/expression/definitions/config.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shaders/symbol.vertex.glsl b/src/shaders/symbol.vertex.glsl index abb5330db53..94305190529 100644 --- a/src/shaders/symbol.vertex.glsl +++ b/src/shaders/symbol.vertex.glsl @@ -134,7 +134,7 @@ struct SymbolPaintProperties { struct PropertyType { /// Whether the property is data-driven and has value in data-driven block or constant uniform. bool isDataDriven; - /// Whether the property is zoom-dependent and has two values that need to be interpolated between zooms. + /// Whether the property is zoom-dependent and has two values that need to be interpolated between zooms. bool isZoomDependent; /// Local offset within the data-driven block (in dwords). /// @@ -383,7 +383,7 @@ void main() { float a_size_min = floor(a_size[0] * 0.5); float a_size_max = floor(a_size[1] * 0.5); - float a_apperance = a_size[1] - 2.0 * a_size_max; + float a_appearance = a_size[1] - 2.0 * a_size_max; vec2 a_pxoffset = a_pixeloffset.xy; vec2 a_min_font_scale = a_pixeloffset.zw / 256.0; @@ -391,7 +391,7 @@ void main() { float size; // When rendering appearances, we use a_size_max to store the size - if (a_apperance == USING_APPEARANCE) { + if (a_appearance == USING_APPEARANCE) { size = a_size_max / 128.0; } else if (!u_is_size_zoom_constant && !u_is_size_feature_constant) { size = mix(a_size_min, a_size_max, u_size_t) / 128.0; @@ -511,8 +511,8 @@ void main() { #ifdef DEPTH_OCCLUSION float depth_occlusion = occlusionFadeMultiSample(projected_point); - float depth_occlusion_multplier = mix(occlusion_opacity, 1.0, depth_occlusion); - out_fade_opacity *= depth_occlusion_multplier; + float depth_occlusion_multiplier = mix(occlusion_opacity, 1.0, depth_occlusion); + out_fade_opacity *= depth_occlusion_multiplier; #endif #ifdef OCCLUSION_QUERIES diff --git a/src/style-spec/expression/definitions/config.ts b/src/style-spec/expression/definitions/config.ts index 18cd6f4ed8b..6da73a952f6 100644 --- a/src/style-spec/expression/definitions/config.ts +++ b/src/style-spec/expression/definitions/config.ts @@ -165,7 +165,7 @@ class Config implements Expression { serialize(): SerializedExpression { const res = ["config", this.key]; if (this.scope) { - res.concat(this.scope); + res.push(this.scope); } return res; }