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();