DirectXTex: TEX_COMPRESS_* flags; added 'compress' flags paramter to GPU Compress [breaking change]

This commit is contained in:
walbourn_cp
2014-01-22 11:04:35 -08:00
parent 8d3dbe1fc0
commit 6a37f81f09
4 changed files with 51 additions and 25 deletions

View File

@@ -1336,11 +1336,11 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
if ( bc6hbc7 && pDevice )
{
hr = Compress( pDevice, img, nimg, info, tformat, *timage );
hr = Compress( pDevice, img, nimg, info, tformat, dwSRGB, *timage );
}
else
{
hr = Compress( img, nimg, info, tformat, cflags, 0.5f, *timage );
hr = Compress( img, nimg, info, tformat, cflags | dwSRGB, 0.5f, *timage );
}
if ( FAILED(hr) )
{