From fcae6f2fc4ced44173bc4015e2c7dfbed78e2519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cle=CC=81ment=20Foucault?= Date: Tue, 15 Oct 2024 22:56:32 +0200 Subject: [PATCH] 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. --- source/blender/gpu/glsl_preprocess/glsl_preprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/gpu/glsl_preprocess/glsl_preprocess.cc b/source/blender/gpu/glsl_preprocess/glsl_preprocess.cc index 97981b7d892..7a43af71370 100644 --- a/source/blender/gpu/glsl_preprocess/glsl_preprocess.cc +++ b/source/blender/gpu/glsl_preprocess/glsl_preprocess.cc @@ -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();