diff options
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 547112ecf66..3163b633df2 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -600,6 +600,9 @@ void BLF_draw(int fontid, const char *str, size_t len) return; } + /* Avoid bgl usage to corrupt BLF drawing. */ + GPU_bgl_end(); + BLF_draw_ex(fontid, str, len, NULL); } |