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
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-03-30 22:10:24 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-03-30 22:10:24 +0300
commit96d6a928ab4e74fe07ac337d3292057bedd9dc21 (patch)
treea6272aa5cbc3f4df1dce0beb658c31c65a51ec4c /source
parentf44d3e83cc0333415ba0038550f436cb93f36914 (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.c3
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();
}
}
}