[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) <noreply@anthropic.com>
This commit is contained in:
Behdad Esfahbod committed 2026-04-13 23:53:18 -06:00
1 parent 18360b24fd
commit 6ef71b9a69
1 file changed
+2
+2
View File
@@ -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