diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 4b9a17a76..6ee1a040c 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -2893,6 +2893,12 @@ BX_PRAGMA_DIAGNOSTIC_POP(); const uint32_t index = (_flags & BGFX_TEXTURE_BORDER_COLOR_MASK) >> BGFX_TEXTURE_BORDER_COLOR_SHIFT; _flags &= BGFX_TEXTURE_SAMPLER_BITS_MASK; + // Force both min+max anisotropic, can't be set individually. + _flags |= 0 != (_flags & (BGFX_TEXTURE_MIN_ANISOTROPIC|BGFX_TEXTURE_MAG_ANISOTROPIC) ) + ? BGFX_TEXTURE_MIN_ANISOTROPIC|BGFX_TEXTURE_MAG_ANISOTROPIC + : 0 + ; + uint32_t hash; ID3D11SamplerState* sampler; if (!needBorderColor(_flags) )