Commit: 2ebcde701a0b93ce20ff662cd32a569820a231b6
Author: fclem
Date:   Thu Apr 26 14:20:58 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2ebcde701a0b93ce20ff662cd32a569820a231b6

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.

===================================================================

M       source/blender/blenfont/intern/blf_glyph.c

===================================================================

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));
        }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to