mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 04:24:11 +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
ba53cf92ac
commit
2626a26072
@ -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…
Reference in New Issue
Block a user