diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-30 22:10:24 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-30 22:10:24 +0300 |
commit | 96d6a928ab4e74fe07ac337d3292057bedd9dc21 (patch) | |
tree | a6272aa5cbc3f4df1dce0beb658c31c65a51ec4c /source | |
parent | f44d3e83cc0333415ba0038550f436cb93f36914 (diff) |
DRW: Add BLF_batch_reset to be able to use BLF inside DRW.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 9a30eaed974..96cd096ae27 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -31,6 +31,8 @@ #include "BLI_string.h" #include "BLI_threads.h" +#include "BLF_api.h" + #include "BKE_global.h" #include "BKE_mesh.h" #include "BKE_object.h" @@ -2056,6 +2058,7 @@ void DRW_opengl_context_enable(void) GWN_context_active_set(DST.gwn_context); if (BLI_thread_is_main()) { immActivate(); + BLF_batch_reset(); } } } |