mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 19:50:13 +02:00
texconv: -bcmax and -bcquick are mutually exclusive switches
This commit is contained in:
parent
1b27a1b819
commit
c825869b65
@ -1204,10 +1204,22 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OPT_COMPRESS_MAX:
|
case OPT_COMPRESS_MAX:
|
||||||
|
if (dwCompress & TEX_COMPRESS_BC7_QUICK)
|
||||||
|
{
|
||||||
|
wprintf(L"Can't use -bcmax and -bcquick at same time\n\n");
|
||||||
|
PrintUsage();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
dwCompress |= TEX_COMPRESS_BC7_USE_3SUBSETS;
|
dwCompress |= TEX_COMPRESS_BC7_USE_3SUBSETS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPT_COMPRESS_QUICK:
|
case OPT_COMPRESS_QUICK:
|
||||||
|
if (dwCompress & TEX_COMPRESS_BC7_USE_3SUBSETS)
|
||||||
|
{
|
||||||
|
wprintf(L"Can't use -bcmax and -bcquick at same time\n\n");
|
||||||
|
PrintUsage();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
dwCompress |= TEX_COMPRESS_BC7_QUICK;
|
dwCompress |= TEX_COMPRESS_BC7_QUICK;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user