diff options
author | fclem <foucault.clem@gmail.com> | 2018-04-26 15:20:58 +0300 |
---|---|---|
committer | fclem <foucault.clem@gmail.com> | 2018-04-26 15:21:16 +0300 |
commit | 2ebcde701a0b93ce20ff662cd32a569820a231b6 (patch) | |
tree | a8407c5af9800706e014c3a21178694073c5204f /source | |
parent | df3ea82b84da7a9b003fd0f9afa26081216e64e9 (diff) |
BLF: Fix problem with drawing with fonts with multiple size.
Fix T54838 : Text display glitch w/ fonts at different sizes.
This was cause by the cache not being flushed when changing font texture.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index d0589f6546e..9baa586eef5 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -519,6 +519,7 @@ void blf_glyph_render(FontBLF *font, GlyphBLF *g, float x, float y) } if (font->tex_bind_state != g->tex) { + blf_batch_draw(); glBindTexture(GL_TEXTURE_2D, (font->tex_bind_state = g->tex)); } |