1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d11] Ignore OMSetRenderTargets calls with incompatible view sizes

Fixes #2701.
This commit is contained in:
Philip Rebohle 2022-07-01 17:21:39 +02:00
parent 1b89394aa0
commit 00cfee9d17
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -4487,6 +4487,13 @@ namespace dxvk {
if (curView->imageInfo().sampleCount
!= refView->imageInfo().sampleCount)
return false;
VkExtent3D curExtent = curView->mipLevelExtent(0);
VkExtent3D refExtent = refView->mipLevelExtent(0);
if (curExtent.width != refExtent.width
|| curExtent.height != refExtent.height)
return false;
} else {
// Set reference view. All remaining views
// must be compatible to the reference view.