diff options
Diffstat (limited to 'source/blender/blenfont/intern')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 8 | ||||
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 2 | ||||
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 6 |
3 files changed, 7 insertions, 9 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 725c4c0712d..5664b9ae0a0 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -47,11 +47,9 @@ #include "IMB_colormanagement.h" -#ifndef BLF_STANDALONE -# include "GPU_shader.h" -# include "GPU_matrix.h" -# include "GPU_immediate.h" -#endif +#include "GPU_shader.h" +#include "GPU_matrix.h" +#include "GPU_immediate.h" #include "blf_internal_types.h" #include "blf_internal.h" diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index f0afe184233..0f75d9b5ab0 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -230,8 +230,10 @@ void blf_batch_draw(void) GPU_blend_set_func_separate( GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA); +#ifndef BLF_STANDALONE /* We need to flush widget base first to ensure correct ordering. */ UI_widgetbase_draw_cache_flush(); +#endif GPUTexture *texture = blf_batch_cache_texture_load(); GPU_texture_bind(texture, 0); diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 3ab6814c531..3270eec58f9 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -46,10 +46,8 @@ #include "BLF_api.h" -#ifndef BLF_STANDALONE -# include "GPU_immediate.h" -# include "GPU_extensions.h" -#endif +#include "GPU_immediate.h" +#include "GPU_extensions.h" #include "blf_internal_types.h" #include "blf_internal.h" |