mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-03 13:13:35 +02:00
Handle fixup of flat location specifiers
This commit is contained in:
@@ -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('): # )
|
||||
|
||||
Reference in New Issue
Block a user