Forráskód Böngészése

Fixed issue where printing profile names prints unreadable characters (#3188)

* Fixed issue where printing profile names prints unreadable characters

* Use %S for StringLitera.

---------

Co-authored-by: Бранимир Караџић <[email protected]>
gamecoder-nz 2 éve
szülő
commit
66b020e939
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      tools/shaderc/shaderc.cpp

+ 2 - 2
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);
 				}
 
 			}