diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-10-19 19:48:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-10-20 15:55:18 +0300 |
commit | 45400b32d0e95444d1db22dcd8939689db6a2204 (patch) | |
tree | 4a754b0d0ae596cce4f84a51f734f382ab0ee8e3 /source/blender/draw/intern/draw_manager_texture.c | |
parent | 711b55b5277021e395171362c7428cbb34f9caba (diff) |
DRW: Disable anisotropic filtering on utility textures
Anisotropic filter may result in incorrect algorithm. This only
affects util textures (not Image datablocks gpu textures).
Diffstat (limited to 'source/blender/draw/intern/draw_manager_texture.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager_texture.c b/source/blender/draw/intern/draw_manager_texture.c index a456aa9916e..8b948e62cf3 100644 --- a/source/blender/draw/intern/draw_manager_texture.c +++ b/source/blender/draw/intern/draw_manager_texture.c @@ -72,6 +72,7 @@ void drw_texture_set_parameters(GPUTexture *tex, DRWTextureFlag flags) else { GPU_texture_filter_mode(tex, flags & DRW_TEX_FILTER); } + GPU_texture_anisotropic_filter(tex, false); GPU_texture_wrap_mode(tex, flags & DRW_TEX_WRAP, true); GPU_texture_compare_mode(tex, flags & DRW_TEX_COMPARE); } |