diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-28 01:05:14 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-28 01:05:57 +0300 |
commit | 873c23456b4423c96382f94190645f0ef6a5d9d5 (patch) | |
tree | 9ce6a9995a6feca5bf72e80cc0709f130b027ff9 /source/blender/editors/space_view3d/view3d_draw.c | |
parent | 0acf655f9de7fd6e75bb1d3bec90d4b561975ea7 (diff) |
UI: Perf: Don't use implicit Attrib.
Implicit attrib is doing memcpy which seems to be slower compared to
individual immAttrib*.
Only fixed the ones who appeared in my profilling logs.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 34db99b5a5d..152d7de4924 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1468,6 +1468,7 @@ static void draw_view_axis(RegionView3D *rv3d, const rcti *rect) immAttrib4ubv(col, axis_col[i]); immVertex2f(pos, startx, starty); + immAttrib4ubv(col, axis_col[i]); immVertex2fv(pos, axis_pos[i]); } |