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:
authorfclem <foucault.clem@gmail.com>2018-04-26 15:20:58 +0300
committerfclem <foucault.clem@gmail.com>2018-04-26 15:21:16 +0300
commit2ebcde701a0b93ce20ff662cd32a569820a231b6 (patch)
treea8407c5af9800706e014c3a21178694073c5204f /source/blender/blenfont
parentdf3ea82b84da7a9b003fd0f9afa26081216e64e9 (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/blender/blenfont')
-rw-r--r--source/blender/blenfont/intern/blf_glyph.c1
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));
}