From 66b020e93975f23befe9773b6840e6939d8483b5 Mon Sep 17 00:00:00 2001 From: gamecoder-nz <42922238+gamecoder-nz@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:44:51 +1300 Subject: [PATCH] Fixed issue where printing profile names prints unreadable characters (#3188) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed issue where printing profile names prints unreadable characters * Use %S for StringLitera. --------- Co-authored-by: Бранимир Караџић --- tools/shaderc/shaderc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index 4d49d396c..1d05d9683 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -1036,11 +1036,11 @@ namespace bgfx { lang = profile.lang; bx::printf("\n"); - bx::printf(" %-20s %s\n", profile.name, getName(profile.lang) ); + bx::printf(" %-20S %s\n", &profile.name, getName(profile.lang) ); } else { - bx::printf(" %s\n", profile.name); + bx::printf(" %S\n", &profile.name); } }