From 6ef71b9a695cb98c1e6107a88ef90dbdadd1bed2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 13 Apr 2026 23:53:18 -0600 Subject: [PATCH] [gpu] Fix missing closing brace in Metal fragment shader _hb_gpu_slug in hb-gpu-fragment.msl was missing its closing brace, so hb_gpu_stem_darken got parsed as a nested function definition, which MSL rejects: error: function definition is not allowed here The other three shader languages already had the brace; this regression was limited to the Metal source during the recent refactor that moved the slug body to the shared fragment file. Assisted-by: Claude Opus 4.6 (1M context) --- src/hb-gpu-fragment.msl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-gpu-fragment.msl b/src/hb-gpu-fragment.msl index 9d3e9869c..bb7da496d 100644 --- a/src/hb-gpu-fragment.msl +++ b/src/hb-gpu-fragment.msl @@ -304,6 +304,8 @@ float _hb_gpu_slug (float2 renderCoord, float2 pixelsPerEm, uint glyphLoc_, #endif return c; +} + /* Stem darkening for small sizes. * * coverage: output of hb_gpu_draw