[Bf-blender-cvs] [c68a2a722d2] master: Fix T80599 Blender Cloud folder text on the screen very small

Clément Foucault noreply at git.blender.org
Mon Oct 12 15:33:06 CEST 2020


Commit: c68a2a722d2f4d6fbfabfa5d8e255de9ef59648d
Author: Clément Foucault
Date:   Mon Oct 12 15:32:56 2020 +0200
Branches: master
https://developer.blender.org/rBc68a2a722d2f4d6fbfabfa5d8e255de9ef59648d

Fix T80599 Blender Cloud folder text on the screen very small

This was caused by BLF conflicting with BGL api change.

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

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

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

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



More information about the Bf-blender-cvs mailing list