mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 12:00:06 +00:00
Updated tools to use TGA_FLAGS parameter
This commit is contained in:
parent
836cabd0f9
commit
b68c0df6d5
@ -651,7 +651,7 @@ namespace
|
||||
return SaveToDDSFile(img, DDS_FLAGS_NONE, szOutputFile);
|
||||
|
||||
case CODEC_TGA:
|
||||
return SaveToTGAFile(img, szOutputFile);
|
||||
return SaveToTGAFile(img, TGA_FLAGS_NONE, szOutputFile);
|
||||
|
||||
case CODEC_HDR:
|
||||
return SaveToHDRFile(img, szOutputFile);
|
||||
@ -1161,7 +1161,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
}
|
||||
else if (_wcsicmp(ext, L".tga") == 0)
|
||||
{
|
||||
hr = LoadFromTGAFile(pConv->szSrc, &info, *image);
|
||||
hr = LoadFromTGAFile(pConv->szSrc, TGA_FLAGS_NONE, &info, *image);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
wprintf(L" FAILED (%x)\n", static_cast<unsigned int>(hr));
|
||||
|
@ -1749,7 +1749,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
}
|
||||
else if (_wcsicmp(ext, L".tga") == 0)
|
||||
{
|
||||
hr = LoadFromTGAFile(pConv->szSrc, &info, *image);
|
||||
hr = LoadFromTGAFile(pConv->szSrc, TGA_FLAGS_NONE, &info, *image);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
wprintf(L" FAILED (%x)\n", static_cast<unsigned int>(hr));
|
||||
@ -3130,7 +3130,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
}
|
||||
|
||||
case CODEC_TGA:
|
||||
hr = SaveToTGAFile(img[0], pConv->szDest, (dwOptions & (DWORD64(1) << OPT_TGA20)) ? &info : nullptr);
|
||||
hr = SaveToTGAFile(img[0], TGA_FLAGS_NONE, pConv->szDest, (dwOptions & (DWORD64(1) << OPT_TGA20)) ? &info : nullptr);
|
||||
break;
|
||||
|
||||
case CODEC_HDR:
|
||||
|
@ -651,7 +651,7 @@ namespace
|
||||
}
|
||||
else if (_wcsicmp(ext, L".tga") == 0)
|
||||
{
|
||||
return LoadFromTGAFile(fileName, &info, *image);
|
||||
return LoadFromTGAFile(fileName, TGA_FLAGS_NONE, &info, *image);
|
||||
}
|
||||
else if (_wcsicmp(ext, L".hdr") == 0)
|
||||
{
|
||||
@ -685,7 +685,7 @@ namespace
|
||||
return SaveToDDSFile(*image, DDS_FLAGS_NONE, fileName);
|
||||
|
||||
case CODEC_TGA:
|
||||
return SaveToTGAFile(*image, fileName);
|
||||
return SaveToTGAFile(*image, TGA_FLAGS_NONE, fileName);
|
||||
|
||||
case CODEC_HDR:
|
||||
return SaveToHDRFile(*image, fileName);
|
||||
|
Loading…
Reference in New Issue
Block a user