[d3d11] Remove MaxAnisotropy < 0 check

This type is unsigned, this is impossible.
This commit is contained in:
Joshua Ashton 2022-09-10 21:01:09 +00:00 committed by Joshie
parent b0ac267fd5
commit ce5e7ad427
1 changed files with 1 additions and 2 deletions

View File

@ -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