From bde2eef17539d85e0d6209780e1801bfd6882e31 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 22 Oct 2023 03:50:44 +1100 Subject: [PATCH] [host] dxgi: fix format for HDR10 when it needs correcting --- host/platform/Windows/capture/DXGI/src/dxgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index 6f647577..00d04df3 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -623,7 +623,7 @@ next_output: // there seems to be a bug here in DXGI, asking for 10bit when restarting // reports as 16bit, even though it's really 10bit. if (desc.Format == DXGI_FORMAT_R16G16B16A16_FLOAT) - desc.Format = DXGI_FORMAT_R10G10B10A2_UINT; + desc.Format = DXGI_FORMAT_R10G10B10A2_UNORM; DEBUG_INFO("Capture Format : %s", GetDXGIFormatStr(desc.Format)); this->dxgiFormat = desc.Format;