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:
Diffstat (limited to 'source/blender/blenfont/intern/blf.c')
-rw-r--r--source/blender/blenfont/intern/blf.c3
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);
}