mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 22:54:16 +01:00
[d3d11] Fix sampler state validation for anisotropy
Fixes an issue where samplers are not created in Path of Exile.
This commit is contained in:
parent
5d5be87402
commit
370ff34e9f
@ -87,14 +87,10 @@ namespace dxvk {
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if (filterBits & 0x40 /* anisotropic */) {
|
||||
if (pDesc->MaxAnisotropy < 1
|
||||
|| pDesc->MaxAnisotropy > 16)
|
||||
return E_INVALIDARG;
|
||||
} else if (pDesc->MaxAnisotropy < 0
|
||||
|| pDesc->MaxAnisotropy > 16) {
|
||||
return E_INVALIDARG;
|
||||
} else {
|
||||
if (pDesc->MaxAnisotropy < 0
|
||||
|| pDesc->MaxAnisotropy > 16) {
|
||||
return E_INVALIDARG;
|
||||
} else if ((filterBits & 0x40) == 0 /* not anisotropic */) {
|
||||
// Reset anisotropy if it is not used
|
||||
pDesc->MaxAnisotropy = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user