mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +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;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filterBits & 0x40 /* anisotropic */) {
|
if (pDesc->MaxAnisotropy < 0
|
||||||
if (pDesc->MaxAnisotropy < 1
|
|| pDesc->MaxAnisotropy > 16) {
|
||||||
|| pDesc->MaxAnisotropy > 16)
|
return E_INVALIDARG;
|
||||||
return E_INVALIDARG;
|
} else if ((filterBits & 0x40) == 0 /* not anisotropic */) {
|
||||||
} else if (pDesc->MaxAnisotropy < 0
|
|
||||||
|| pDesc->MaxAnisotropy > 16) {
|
|
||||||
return E_INVALIDARG;
|
|
||||||
} else {
|
|
||||||
// Reset anisotropy if it is not used
|
// Reset anisotropy if it is not used
|
||||||
pDesc->MaxAnisotropy = 0;
|
pDesc->MaxAnisotropy = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user