1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[d3d11] Only apply anisotropy override to linear samplers

Mirrors D3D9, more or less.
This commit is contained in:
Philip Rebohle 2022-03-30 14:37:33 +02:00
parent e7e7fa231c
commit e07157fe72
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -46,7 +46,7 @@ namespace dxvk {
// Enforce anisotropy specified in the device options
int32_t samplerAnisotropyOption = device->GetOptions()->samplerAnisotropy;
if (samplerAnisotropyOption >= 0) {
if (samplerAnisotropyOption >= 0 && info.minFilter == VK_FILTER_LINEAR) {
info.useAnisotropy = samplerAnisotropyOption > 0;
info.maxAnisotropy = float(samplerAnisotropyOption);
}