fix: valid glsl
This commit is contained in:
@@ -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]);
|
||||
}}
|
||||
|
||||
@@ -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),
|
||||
");",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user