diff options
author | Philip Rebohle <philip.rebohle@tu-dortmund.de> | 2022-07-01 18:21:39 +0300 |
---|---|---|
committer | Philip Rebohle <philip.rebohle@tu-dortmund.de> | 2022-07-01 18:38:46 +0300 |
commit | 540c062993890911d1f761035bb2166e60485f6c (patch) | |
tree | a3e445066494768ae5172e74a7454eb46467c082 | |
parent | e81094533b02b542c609a56466a68ab92a006ff9 (diff) |
[d3d11] Ignore OMSetRenderTargets calls with incompatible view sizesoneechan
Fixes #2701.
-rw-r--r-- | src/d3d11/d3d11_context.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 78e290d7..239d659a 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -4451,6 +4451,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. |