From 0a203095d69cd353f9109886b0d8ea9c400bbfa0 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 21 Aug 2022 19:05:42 +0000 Subject: [PATCH] [d3d11] Use topath helper in shader code --- src/d3d11/d3d11_shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d11/d3d11_shader.cpp b/src/d3d11/d3d11_shader.cpp index 800bdea8d..085ad13f2 100644 --- a/src/d3d11/d3d11_shader.cpp +++ b/src/d3d11/d3d11_shader.cpp @@ -27,7 +27,7 @@ namespace dxvk { const std::string dumpPath = env::getEnvVar("DXVK_SHADER_DUMP_PATH"); if (dumpPath.size() != 0) { - reader.store(std::ofstream(str::tows(str::format(dumpPath, "/", name, ".dxbc").c_str()).c_str(), + reader.store(std::ofstream(str::topath(str::format(dumpPath, "/", name, ".dxbc").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc)); } @@ -47,7 +47,7 @@ namespace dxvk { if (dumpPath.size() != 0) { std::ofstream dumpStream( - str::tows(str::format(dumpPath, "/", name, ".spv").c_str()).c_str(), + str::topath(str::format(dumpPath, "/", name, ".spv").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc); m_shader->dump(dumpStream);