Skip to content
Snippets Groups Projects
Verified Commit fa6e2c1e authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#73] Used binary mode on Windows to fix edgy edge-cases

parent 893d3be6
No related branches found
No related tags found
1 merge request!60Resolve "Runtime shader compilation"
Pipeline #25738 passed
......@@ -177,7 +177,7 @@ namespace vkcv::shader {
}
static bool writeSpirvCode(const std::filesystem::path &shaderPath, const std::vector<uint32_t>& spirv) {
std::ofstream file (shaderPath.string(), std::ios::out);
std::ofstream file (shaderPath.string(), std::ios::out | std::ios::binary);
if (!file.is_open()) {
vkcv_log(LogLevel::ERROR, "The file could not be opened (%s)", shaderPath.string().c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment