mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-06 00:20:40 +00:00
Remove array syntax from uniform block member variable names
This commit is contained in:
parent
dbe59e0667
commit
da87a97c72
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ def fixup_opengl_code(glsl_code: str, path: str) -> tuple[str, dict[str, Any]]:
|
|||
uniform_name = name.rpartition('_')[0]
|
||||
if uniform_name in uniform_names:
|
||||
raise KeyError(f'The uniform name {uniform_name} is used with multiple suffixes in {path}')
|
||||
uniform_names[uniform_name] = name
|
||||
uniform_names[uniform_name] = name.partition('[')[0] # ]
|
||||
return name
|
||||
src_lines = glsl_code.splitlines()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue