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:
Ryan Sims 2024-11-23 01:32:09 +00:00 committed by Alx Sa
parent 01d8d2680f
commit e682027b4b

View file

@ -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 */