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 authored and misyltoad committed May 6, 2023
1 parent 96e22e7 commit b08665c
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 b08665c

Please sign in to comment.