1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[wsi] Fix overwriting colorimetry info to NULL

This commit is contained in:
Joshua Ashton 2022-12-08 06:05:19 +00:00 committed by Joshie
parent 858452a0bd
commit c0d843c578

View File

@ -37,9 +37,9 @@ namespace dxvk::wsi {
if (cta) {
for (auto blocks = di_edid_cta_get_data_blocks(cta); *blocks != nullptr; blocks++) {
if ((hdr_static_metadata = di_cta_data_block_get_hdr_static_metadata(*blocks)))
if (!hdr_static_metadata && (hdr_static_metadata = di_cta_data_block_get_hdr_static_metadata(*blocks)))
continue;
if ((colorimetry = di_cta_data_block_get_colorimetry(*blocks)))
if (!colorimetry && (colorimetry = di_cta_data_block_get_colorimetry(*blocks)))
continue;
}
}