From 233d22aa2e530c6f354961ac25f8a915efc2d548 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Wed, 3 May 2023 19:41:08 +0200 Subject: [PATCH] [d3d9] Fix compiler warning in Clear size check --- src/d3d9/d3d9_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 29e3b977dbd..37314e9a8fb 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -1632,8 +1632,8 @@ namespace dxvk { 0 }; - if (std::min(pRects[i].x2, offset.x + extent.width) <= rectOffset.x - || std::min(pRects[i].y2, offset.y + extent.height) <= rectOffset.y) { + if (std::min(pRects[i].x2, offset.x + extent.width) <= rectOffset.x + || std::min(pRects[i].y2, offset.y + extent.height) <= rectOffset.y) { continue; }