Skip to content

Commit

Permalink
[host] dxgi: fix format for HDR10 when it needs correcting
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Oct 21, 2023
1 parent e0bdd86 commit bde2eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/platform/Windows/capture/DXGI/src/dxgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ static bool dxgi_init(void)
// 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;
Expand Down

0 comments on commit bde2eef

Please sign in to comment.