1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[d3d9] Fix lenient clears

This commit is contained in:
Robin Kertels 2021-09-28 20:09:20 +02:00 committed by Joshie
parent c4449faf5a
commit c8341e4be3

View File

@ -1459,8 +1459,8 @@ namespace dxvk {
if (unlikely(uint32_t(offset.x) >= imageExtent.width || uint32_t(offset.y) >= imageExtent.height))
return;
const bool fullClear = align(extent.width, alignment) == imageExtent.width
&& align(extent.height, alignment) == imageExtent.height
const bool fullClear = align(extent.width, alignment) == align(imageExtent.width, alignment)
&& align(extent.height, alignment) == align(imageExtent.height, alignment)
&& offset.x == 0
&& offset.y == 0;