mirror of https://github.com/doitsujin/dxvk
[d3d11] Ignore OMSetRenderTargets calls with incompatible view sizes
Fixes #2701.
This commit is contained in:
parent
e37bdcf348
commit
310d70bbf8
|
@ -4434,6 +4434,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.
|
||||
|
|
Loading…
Reference in New Issue