diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-20 18:38:24 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-20 18:40:46 +0300 |
commit | 9ad5eafe465e4ab0c9945e234b187dc210ac608a (patch) | |
tree | cd70231535fca7183fc19a02dc9625caf39bd38c /source/blender/blenfont | |
parent | b3b4b9fb8c255d2ec7cc7433ffcafef6311da6e9 (diff) |
Fix incorrect magnification filter for text texture.
Barely any visible difference, except when drawing big custom text
with the Python API.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 30e31bb2580..99be8539d24 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -244,7 +244,7 @@ static void blf_glyph_cache_texture(FontBLF *font, GlyphCacheBLF *gc) gc->textures[gc->texture_current] = tex; GPU_texture_bind(tex, 0); GPU_texture_wrap_mode(tex, false); - GPU_texture_filters(tex, GPU_NEAREST, GPU_LINEAR); + GPU_texture_filters(tex, GPU_NEAREST, GPU_NEAREST); GPU_texture_unbind(tex); } |