Fix: GPU: GLSL preprocessor not using binary output stream

This was adding a lot of CLRF newlines on windows which
in turn caused the new runtime parsing to fail.
This commit is contained in:
Clément Foucault
2024-10-15 22:56:32 +02:00
parent 39d5013c6e
commit fcae6f2fc4

View File

@@ -31,7 +31,7 @@ int main(int argc, char **argv)
}
/* Open the output file for writing */
std::ofstream output_file(output_file_name);
std::ofstream output_file(output_file_name, std::ofstream::out | std::ofstream::binary);
if (!output_file) {
std::cerr << "Error: Could not open output file " << output_file_name << std::endl;
input_file.close();