]> git.sesse.net Git - movit/commitdiff
Fix an off-by-one in shader bundle generation.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Jul 2023 16:45:44 +0000 (18:45 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Jul 2023 16:45:44 +0000 (18:45 +0200)
Non-ASCII characters would inadvertently become two bytes instead of one,
which would (for shaders after that in the bundle) give the wrong offsets
and thus potentially corrupted shaders.

Normally, this wouldn't really be noticed since the first things are
comments and the lasts are #undef, but in some cases, the shader
compilers would complain on suspicious things.

Reported by Stefano Rivera, who also provided a test system for debugging.


No differences found