From 330290dbd3d5582ab99ab4da14be464d994a8b5c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 17 Oct 2026 12:59:52 +0200 Subject: [PATCH] partition.py: fix duplicate-signature key Co-Authored-By: Claude Sonnet 5.5 --- packages/cultmath/tools/glsl/partition.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cultmath/tools/glsl/partition.py b/packages/cultmath/tools/glsl/partition.py index 0f69d8a7..88121c92 100644 --- a/packages/cultmath/tools/glsl/partition.py +++ b/packages/cultmath/tools/glsl/partition.py @@ -58,8 +58,7 @@ def main(shaders, glsl, outdir): odd = [l for l in prologue if not PROLOGUE.match(l)] if odd: sys.exit('refuse: %d unexpected prologue lines, first at %r' % (len(odd), odd[0][:60])) - seen = collections.Counter(b.split(' -')[0] for _, b in parts) # overloads share a name, never a signature + seen = collections.Counter(b.split(chr(10))[0] for _, b in parts) # overloads share a name, never a signature dup = sorted(n for n, c in seen.items() if c > 1) if dup: sys.exit('refuse: duplicate chunks %s' % dup[:6])