From 0ba16d187ad9e1612320192c26c87fc0273daa60 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 19 Nov 2021 11:18:51 +0000 Subject: [PATCH] Handle B8G8R8A8_UNORM case in DDS load --- renderdoc/common/dds_readwrite.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/common/dds_readwrite.cpp b/renderdoc/common/dds_readwrite.cpp index e8f51fc45..9d15c09cd 100644 --- a/renderdoc/common/dds_readwrite.cpp +++ b/renderdoc/common/dds_readwrite.cpp @@ -1061,6 +1061,7 @@ read_dds_data load_dds_from_file(StreamReader *reader) case MAKE_FOURCC('Y', 'U', 'Y', '2'): ret.format = DXGIFormat2ResourceFormat(DXGI_FORMAT_YUY2); break; + case 21: ret.format = DXGIFormat2ResourceFormat(DXGI_FORMAT_B8G8R8A8_UNORM); break; case 36: ret.format = DXGIFormat2ResourceFormat(DXGI_FORMAT_R16G16B16A16_UNORM); break; case 82: ret.format = DXGIFormat2ResourceFormat(DXGI_FORMAT_D32_FLOAT); break; case 110: ret.format = DXGIFormat2ResourceFormat(DXGI_FORMAT_R16G16B16A16_SNORM); break;