We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499b701 commit 266f496Copy full SHA for 266f496
wgpu/backends/wgpu_native/_ffi.py
@@ -34,7 +34,13 @@ def _get_wgpu_header(*filenames):
34
lines1 = []
35
for filename in filenames:
36
with open(filename, "rb") as f:
37
- lines1.extend(f.read().decode().replace("\\\n", "").splitlines(True))
+ lines1.extend(
38
+ f.read()
39
+ .decode()
40
+ .replace("\r\n", "\n")
41
+ .replace("\\\n", "")
42
+ .splitlines(True)
43
+ )
44
# Deal with pre-processor commands, because cffi cannot handle them.
45
# Just removing them, plus a few extra lines, seems to do the trick.
46
lines2 = []
0 commit comments