mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
DirectXTex: Fix for correctly writing valid 1D files
This commit is contained in:
parent
c7594d5265
commit
cac1a2b2fa
@ -531,8 +531,8 @@ HRESULT _EncodeDDSHeader( _In_ const TexMetadata& metadata, DWORD flags,
|
|||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
header->dwHeight = static_cast<uint32_t>( metadata.height );
|
header->dwWidth = static_cast<uint32_t>( metadata.width );
|
||||||
header->dwWidth = header->dwDepth = 1;
|
header->dwHeight = header->dwDepth = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TEX_DIMENSION_TEXTURE2D:
|
case TEX_DIMENSION_TEXTURE2D:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user