Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-10-20 15:54:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-10-20 15:55:18 +0300
commitabc017ae0b5e99db314390d7bcd1c66756772351 (patch)
tree254f89e2a11575d92c39417ed5ac079976874568 /source/blender/gpu
parent45400b32d0e95444d1db22dcd8939689db6a2204 (diff)
GLTexture: Fix Anisotropic filtering affecting the standard mipmap samplers
Everything's in the title...
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/opengl/gl_texture.cc2
1 files changed, 1 insertions, 1 deletions
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<eGPUSamplerState>(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);
}
}