mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
[dxvk] Allow different but matching views in findAttachment as well
Allows us to merge clears in some further edge cases.
This commit is contained in:
parent
8be777b8e2
commit
38649372bf
@ -50,7 +50,7 @@ namespace dxvk {
|
||||
|
||||
int32_t DxvkFramebuffer::findAttachment(const Rc<DxvkImageView>& view) const {
|
||||
for (uint32_t i = 0; i < m_attachmentCount; i++) {
|
||||
if (getAttachment(i).view == view)
|
||||
if (getAttachment(i).view->checkSubresourceMatch(view))
|
||||
return int32_t(i);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user