Remove UTF-8 BOM when reading files in QShaderBaker
Do like glslangValidator does and drop the three bytes when reaeding
the file. (the compiler itself chokes on seeing the UTF-8 BOM,
expecting #version starting at the first byte)
Pick-to: 6.10 6.9 6.8
Fixes: QTBUG-138377
Change-Id: I53bdbfc9e91488e3e0e40a0425a43031fffa8f95
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
| commit | ccc134b7b6cb105238d41699ed4e451b6c2c0367 |
| parent | 54ef13333f5167feefbeed826d294aed7b3b123f |
| author | Laszlo Agocs <lagocs83@gmail.com> |
| committer | Laszlo Agocs <lagocs83@gmail.com> |
| commit time | Thu, 17 Jul 2025 09:36:21 +0200 |