From e682027b4bbef2cf39e8c75eb9d8dccb4902a1cd Mon Sep 17 00:00:00 2001 From: Ryan Sims <149375-ryanjsims@users.noreply.gitlab.gnome.org> Date: Sat, 23 Nov 2024 01:32:09 +0000 Subject: [PATCH] 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 --- plug-ins/file-dds/ddsread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plug-ins/file-dds/ddsread.c b/plug-ins/file-dds/ddsread.c index 8ea62343ed..7931a72f49 100644 --- a/plug-ins/file-dds/ddsread.c +++ b/plug-ins/file-dds/ddsread.c @@ -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 */