DirectXTex: Convert threshold parameter was not being used correctly

Convert needs to use non-WIC paths for -sepalpha cases
This commit is contained in:
walbourn_cp
2013-06-07 18:07:08 -07:00
parent 76bd58ecb0
commit 0a6e75fe5a
3 changed files with 40 additions and 26 deletions

View File

@@ -826,7 +826,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
goto LError;
}
hr = Convert( image->GetImages(), image->GetImageCount(), image->GetMetadata(), tformat, dwFilter | dwSRGB, 0.5f, *timage );
hr = Convert( image->GetImages(), image->GetImageCount(), image->GetMetadata(), tformat, dwFilter | dwFilterOpts | dwSRGB, 0.5f, *timage );
if ( FAILED(hr) )
{
wprintf( L" FAILED [convert] (%x)\n", hr);