mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-10 14:46:14 +01:00
Fixed bugs in WIC loader for multframe images when resizing was required
- texconv & texassemble now load multi-frames if present from WIC files (tiff, gif)
This commit is contained in:
@@ -217,6 +217,9 @@ void PrintInfo( const TexMetadata& info )
|
||||
if ( info.mipLevels > 1 )
|
||||
wprintf( L",%Iu", info.mipLevels);
|
||||
|
||||
if ( info.arraySize > 1 )
|
||||
wprintf( L",%Iu", info.arraySize);
|
||||
|
||||
wprintf( L" ");
|
||||
PrintFormat( info.format );
|
||||
|
||||
@@ -541,7 +544,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
static_assert( WIC_FLAGS_FILTER_CUBIC == TEX_FILTER_CUBIC, "WIC_FLAGS_* & TEX_FILTER_* should match" );
|
||||
static_assert( WIC_FLAGS_FILTER_FANT == TEX_FILTER_FANT, "WIC_FLAGS_* & TEX_FILTER_* should match" );
|
||||
|
||||
hr = LoadFromWICFile( pConv->szSrc, dwFilter, &info, *image.get() );
|
||||
hr = LoadFromWICFile( pConv->szSrc, dwFilter | WIC_FLAGS_ALL_FRAMES, &info, *image.get() );
|
||||
if ( FAILED(hr) )
|
||||
{
|
||||
wprintf( L" FAILED (%x)\n", hr);
|
||||
|
||||
Reference in New Issue
Block a user