mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[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:
1 parent
18360b24fd
commit
6ef71b9a69
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user