mirror of
https://github.com/microsoft/UVAtlas
synced 2024-11-09 22:00:06 +00:00
Fixed printf warnings
This commit is contained in:
parent
b3dee21bc6
commit
9931762719
@ -1098,8 +1098,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
|||||||
hr = inMesh->Validate(VALIDATE_DEFAULT, &msgs);
|
hr = inMesh->Validate(VALIDATE_DEFAULT, &msgs);
|
||||||
if (!msgs.empty())
|
if (!msgs.empty())
|
||||||
{
|
{
|
||||||
wprintf(L"\nWARNING: \n");
|
wprintf(L"\nWARNING: \n%ls\n", msgs.c_str());
|
||||||
wprintf(msgs.c_str());
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1137,7 +1136,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
|||||||
Mesh::Material mtl = {};
|
Mesh::Material mtl = {};
|
||||||
|
|
||||||
wchar_t matname[32] = {};
|
wchar_t matname[32] = {};
|
||||||
swprintf_s(matname, L"Chart%02Iu", j + 1);
|
swprintf_s(matname, L"Chart%02zu", j + 1);
|
||||||
mtl.name = matname;
|
mtl.name = matname;
|
||||||
mtl.specularPower = 1.f;
|
mtl.specularPower = 1.f;
|
||||||
mtl.alpha = 1.f;
|
mtl.alpha = 1.f;
|
||||||
|
Loading…
Reference in New Issue
Block a user