1
0
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:
Philip Rebohle 2018-04-30 19:36:42 +02:00
parent ba53cf92ac
commit 2626a26072

View File

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