mirror of https://github.com/doitsujin/dxvk
[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:
parent
037d0fa1ad
commit
2742486540
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue