From ce5e7ad4278985b122c297f6621df5715b78319f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 10 Sep 2022 21:01:09 +0000 Subject: [PATCH] [d3d11] Remove MaxAnisotropy < 0 check This type is unsigned, this is impossible. --- src/d3d11/d3d11_sampler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/d3d11/d3d11_sampler.cpp b/src/d3d11/d3d11_sampler.cpp index 27767b5a0..f0cd292f9 100644 --- a/src/d3d11/d3d11_sampler.cpp +++ b/src/d3d11/d3d11_sampler.cpp @@ -106,8 +106,7 @@ namespace dxvk { return E_INVALIDARG; } - if (pDesc->MaxAnisotropy < 0 - || pDesc->MaxAnisotropy > 16) { + if (pDesc->MaxAnisotropy > 16) { return E_INVALIDARG; } else if ((filterBits & 0x40) == 0 /* not anisotropic */) { // Reset anisotropy if it is not used