mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-23 18:19:41 +01:00
[dxvk] Fix broken aspect check when finding deferred clears
This commit is contained in:
parent
f355b1c30c
commit
0a7522cd26
@ -6588,7 +6588,7 @@ namespace dxvk {
|
||||
const VkImageSubresourceRange& subresources) {
|
||||
for (auto& entry : m_deferredClears) {
|
||||
if ((entry.imageView->image() == image.ptr())
|
||||
&& (entry.clearAspects & entry.discardAspects & subresources.aspectMask)
|
||||
&& ((entry.clearAspects | entry.discardAspects) | subresources.aspectMask)
|
||||
&& (vk::checkSubresourceRangeOverlap(entry.imageView->imageSubresources(), subresources)))
|
||||
return &entry;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user