mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-01 21:36:09 +00:00
Handle fixup of flat location specifiers
This commit is contained in:
parent
28bd195499
commit
16e4459fae
1 changed files with 2 additions and 0 deletions
|
|
@ -377,6 +377,8 @@ def fixup_opengl_code(glsl_code: str) -> tuple[str, dict[str, Any]]:
|
|||
line = '// ' + line
|
||||
elif line.startswith('layout(location =') or line.startswith('layout(binding ='):
|
||||
line = '// ' + line
|
||||
elif line.startswith('flat layout(location ='):
|
||||
line = 'flat'
|
||||
elif line: # ))))
|
||||
words = line.split()
|
||||
if 'uniform' in words and line.startswith('layout('): # )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue