mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 12:00:06 +00: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;
|
||||
#endif
|
||||
|
||||
header->dwHeight = static_cast<uint32_t>( metadata.height );
|
||||
header->dwWidth = header->dwDepth = 1;
|
||||
header->dwWidth = static_cast<uint32_t>( metadata.width );
|
||||
header->dwHeight = header->dwDepth = 1;
|
||||
break;
|
||||
|
||||
case TEX_DIMENSION_TEXTURE2D:
|
||||
|
Loading…
Reference in New Issue
Block a user