fix: valid glsl
Python Lint CI / ruff (push) Canceled after 4m9s
Python Lint CI / ty (push) Canceled after 4m8s
Python Lint CI / ruff-format-check (push) Canceled after 4m9s

This commit is contained in:
2026-11-08 17:14:27 +01:00
parent 5fe201e2f8
commit 1ddb4533bd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ GLSL_SET_FUNCTIONS = """
int {0}_set_glyph(int set, float v)
{{
if (v < .0 || v >= 1. || set < 0. || set >= {1}_SETS) {{
return 0.;
return 0;
}}
return {0}_sets[set * 2] + int(v * {0}_sets[set * 2 + 1]);
}}
+1 -1
View File
@@ -40,7 +40,7 @@ class Sentence:
+ [
");",
"",
f"const int {name}_sentences_lengths[{len(sentences)}](",
f"const int {name}_sentences_lengths[] = int[{len(sentences)}](",
" " * indent + ", ".join(str(len(s.data)) for s in sentences),
");",
]