From e07157fe72e7a3b576deeea7cce834ae89adc6d7 Mon Sep 17 00:00:00 2001
From: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Date: Wed, 30 Mar 2022 14:37:33 +0200
Subject: [PATCH] [d3d11] Only apply anisotropy override to linear samplers

Mirrors D3D9, more or less.
---
 src/d3d11/d3d11_sampler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/d3d11/d3d11_sampler.cpp b/src/d3d11/d3d11_sampler.cpp
index 397dc47bc..c8a54af56 100644
--- a/src/d3d11/d3d11_sampler.cpp
+++ b/src/d3d11/d3d11_sampler.cpp
@@ -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);
     }