Skip to content

Commit

Permalink
[d3d9] Fix compiler warning in Clear size check
Browse files Browse the repository at this point in the history
  • Loading branch information
K0bin committed May 4, 2023
1 parent 6dfe44b commit 233d22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1632,8 +1632,8 @@ namespace dxvk {
0
};

if (std::min<uint32_t>(pRects[i].x2, offset.x + extent.width) <= rectOffset.x
|| std::min<uint32_t>(pRects[i].y2, offset.y + extent.height) <= rectOffset.y) {
if (std::min<int32_t>(pRects[i].x2, offset.x + extent.width) <= rectOffset.x
|| std::min<int32_t>(pRects[i].y2, offset.y + extent.height) <= rectOffset.y) {
continue;
}

Expand Down

0 comments on commit 233d22a

Please sign in to comment.