[host] dxgi: fix format for HDR10 when it needs correcting

This commit is contained in:
Geoffrey McRae 2023-10-22 03:50:44 +11:00
parent e0bdd869d6
commit bde2eef175

View File

@ -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;