file-dds: Fix texture array loading
load_info.dxgi_format was not set after reading the DX10 header, leading to DX10 texture arrays, volumes, and cubemaps not loading in multiple layers
This commit is contained in:
parent
01d8d2680f
commit
e682027b4b
1 changed files with 1 additions and 0 deletions
|
|
@ -972,6 +972,7 @@ validate_dx10_header (dds_header_dx10_t *dx10hdr,
|
|||
case DXGI_FORMAT_BC5_UNORM:
|
||||
case DXGI_FORMAT_BC5_SNORM:
|
||||
/* Return early for supported compressed formats */
|
||||
load_info->dxgi_format = dx10hdr->dxgiFormat & 0xFF;
|
||||
return TRUE;
|
||||
default:
|
||||
/* Unset FourCC flag for uncompressed formats */
|
||||
|
|
|
|||
Loading…
Reference in a new issue