mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[dxgi] Expose only sRGB when enableHDR is disabled
Death Stranding: Director's Cut crashes if HDR was last enabled in-game and CheckColorSpaceSupport reports support for HDR but it is not globally enabled in DXGIOutput::GetDesc1's ColorSpace. It seems safer to just lock HDR behind an option to avoid any teething issues like this. It sucks, but it also makes sense in a way.
This commit is contained in:
parent
bb75e214d6
commit
28ee6867be
@ -523,6 +523,17 @@ namespace dxvk {
|
||||
if (!pColorSpaceSupport)
|
||||
return E_INVALIDARG;
|
||||
|
||||
// Don't expose any color spaces other than standard
|
||||
// sRGB if the enableHDR option is not set.
|
||||
//
|
||||
// If we ever have a use for the non-SRGB non-HDR colorspaces
|
||||
// some day, we may want to revisit this.
|
||||
if (ColorSpace != DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
|
||||
&& !m_factory->GetOptions()->enableHDR) {
|
||||
*pColorSpaceSupport = 0;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
UINT support = m_presenter->CheckColorSpaceSupport(ColorSpace);
|
||||
*pColorSpaceSupport = support;
|
||||
return S_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user