From abc017ae0b5e99db314390d7bcd1c66756772351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 20 Oct 2020 14:54:51 +0200 Subject: GLTexture: Fix Anisotropic filtering affecting the standard mipmap samplers Everything's in the title... --- source/blender/gpu/opengl/gl_texture.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/opengl/gl_texture.cc b/source/blender/gpu/opengl/gl_texture.cc index 111af76f958..070a86509ff 100644 --- a/source/blender/gpu/opengl/gl_texture.cc +++ b/source/blender/gpu/opengl/gl_texture.cc @@ -530,7 +530,7 @@ void GLTexture::samplers_update(void) for (int i = 0; i <= GPU_SAMPLER_ICON - 1; i++) { eGPUSamplerState state = static_cast(i); - if (state & GPU_SAMPLER_MIPMAP) { + if ((state & GPU_SAMPLER_ANISO) && (state & GPU_SAMPLER_MIPMAP)) { glSamplerParameterf(samplers_[i], GL_TEXTURE_MAX_ANISOTROPY_EXT, aniso_filter); } } -- cgit v1.2.3