[dxvk] Don't query color space support for null surfaces

Fixes a crash in games with the dxgi.deferSurfaceCreation workaround set.
Note that this potentially breaks HDR.
This commit is contained in:
Philip Rebohle 2024-03-21 15:32:48 +01:00
parent 037d0fa1ad
commit 2742486540
1 changed files with 3 additions and 0 deletions

View File

@ -382,6 +382,9 @@ namespace dxvk {
bool Presenter::supportsColorSpace(VkColorSpaceKHR colorspace) {
if (!m_surface)
return false;
std::vector<VkSurfaceFormatKHR> surfaceFormats;
getSupportedFormats(surfaceFormats, VK_FULL_SCREEN_EXCLUSIVE_DEFAULT_EXT);