mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +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
|
line = '// ' + line
|
||||||
elif line.startswith('layout(location =') or line.startswith('layout(binding ='):
|
elif line.startswith('layout(location =') or line.startswith('layout(binding ='):
|
||||||
line = '// ' + line
|
line = '// ' + line
|
||||||
|
elif line.startswith('flat layout(location ='):
|
||||||
|
line = 'flat'
|
||||||
elif line: # ))))
|
elif line: # ))))
|
||||||
words = line.split()
|
words = line.split()
|
||||||
if 'uniform' in words and line.startswith('layout('): # )
|
if 'uniform' in words and line.startswith('layout('): # )
|
||||||
|
|||||||
Reference in New Issue
Block a user