DirectXTex: Minor code review fixes

This commit is contained in:
walbourn_cp 2013-01-08 13:15:48 -08:00
parent 9e6ea1f910
commit 171f49b741
2 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ HRESULT _EncodeDDSHeader( const TexMetadata& metadata, DWORD flags,
{ {
case TEX_DIMENSION_TEXTURE1D: case TEX_DIMENSION_TEXTURE1D:
#ifdef _AMD64_ #ifdef _AMD64_
if ( metadata.height > 0xFFFFFFFF ) if ( metadata.width > 0xFFFFFFFF )
return E_INVALIDARG; return E_INVALIDARG;
#endif #endif

View File

@ -338,7 +338,7 @@ void PrintUsage()
wprintf( L" -hflip horizonal flip of source image\n"); wprintf( L" -hflip horizonal flip of source image\n");
wprintf( L" -vflip vertical flip of source image\n"); wprintf( L" -vflip vertical flip of source image\n");
wprintf( L" -sepalpha resize/generate mips alpha channel separately from color channels\n"); wprintf( L" -sepalpha resize/generate mips alpha channel separately from color channels\n");
wprintf( L" -pmalpha convert final texture to premultiply alpha\n"); wprintf( L" -pmalpha convert final texture to use premultiplied alpha\n");
wprintf( L" -t{u|f} DDS files with TYPELESS format is treated as UNORM or FLOAT\n"); wprintf( L" -t{u|f} DDS files with TYPELESS format is treated as UNORM or FLOAT\n");
wprintf( L" -dword Use DWORD instead of BYTE alignment (DDS input only)\n"); wprintf( L" -dword Use DWORD instead of BYTE alignment (DDS input only)\n");
wprintf( L" -dx10 Force use of 'DX10' extended header (DDS output only)\n"); wprintf( L" -dx10 Force use of 'DX10' extended header (DDS output only)\n");