mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-17 17:52:11 +01:00
[d3d11] Remove MaxAnisotropy < 0 check
This type is unsigned, this is impossible.
This commit is contained in:
parent
b0ac267fd5
commit
ce5e7ad427
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user