diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-27 20:04:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-27 20:05:24 +0300 |
commit | 87a66864bc2ed740b5740bb29eefbf9dcf8387cd (patch) | |
tree | b8d785fdce81463e9aea64b71e671b4aad2d43e7 /source/blender/editors/space_view3d | |
parent | 75fac519c0535df6c13c3d534796e8b263af895f (diff) |
Add back text color for legacy drawing
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 7fe4a1d3570..34e446a5a26 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -936,10 +936,12 @@ void view3d_cached_text_draw_end(View3D *v3d, ARegion *ar, bool depth_write) glDepthMask(GL_FALSE); } + const int font_id = BLF_default(); + for (vos = g_v3d_strings[g_v3d_string_level]; vos; vos = vos->next) { if (vos->sco[0] != IS_CLIPPED) { if (col_pack_prev != vos->col.pack) { - //glColor3ubv(vos->col.ub); + BLF_color3ubv(font_id, vos->col.ub); col_pack_prev = vos->col.pack; } |