upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/shader_diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shader_diff.py')
-rw-r--r--tools/shader_diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shader_diff.py b/tools/shader_diff.py
index c42bcf22f..4b52ab7ba 100644
--- a/tools/shader_diff.py
+++ b/tools/shader_diff.py
@@ -177,7 +177,7 @@ def generate_program(rng, n_ops):
177 177
178 178
179def _write_listing(path, lines, with_export): 179def _write_listing(path, lines, with_export):
180 with open(path, "w", encoding="utf-8") as f: 180 with open(path, "w", encoding="utf-8", newline="\n") as f:
181 f.write("; shader_diff case code 0x0..0x1000\n") 181 f.write("; shader_diff case code 0x0..0x1000\n")
182 for line in lines: 182 for line in lines:
183 f.write("\t" + line + "\n") 183 f.write("\t" + line + "\n")