Skip to content

Commit

Permalink
[d3d11] Ignore OMSetRenderTargets calls with incompatible view sizes
Browse files Browse the repository at this point in the history
Fixes #2701.
  • Loading branch information
doitsujin committed Jul 10, 2022
1 parent 1b89394 commit 00cfee9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/d3d11/d3d11_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 00cfee9

Please sign in to comment.