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:
authorClément Foucault <foucault.clem@gmail.com>2020-10-12 16:32:56 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-10-12 16:33:01 +0300
commitc68a2a722d2f4d6fbfabfa5d8e255de9ef59648d (patch)
tree7acb3857759f01f7f1b2f8013d8cc9d492d19836 /source/blender/blenfont
parentf56c5245d249ce755fb26ae1791de3c6f9dcee44 (diff)
Fix T80599 Blender Cloud folder text on the screen very small
This was caused by BLF conflicting with BGL api change.
Diffstat (limited to 'source/blender/blenfont')
-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);
}