diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2016-10-13 02:18:14 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2016-10-13 03:36:56 +0300 |
commit | 69b1b95356dfb5491730878de2ab5093eb90e20a (patch) | |
tree | 15f28d2dd4f5fe9e6190885bee8452f6bfe15cda /source/blender/editors/space_view3d | |
parent | e79f302f1613adfb957c2f8f5fca50aba7f25259 (diff) |
immediate mode: use new ThemeColor functions
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_fly.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_walk.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/space_view3d/view3d_fly.c b/source/blender/editors/space_view3d/view3d_fly.c index 19c4b80a005..b42afd3a7a9 100644 --- a/source/blender/editors/space_view3d/view3d_fly.c +++ b/source/blender/editors/space_view3d/view3d_fly.c @@ -264,9 +264,7 @@ static void drawFlyPixel(const struct bContext *UNUSED(C), ARegion *UNUSED(ar), immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); - unsigned char square_color[3]; - UI_GetThemeColor3ubv(TH_VIEW_OVERLAY, square_color); - immUniformColor3ubv(square_color); + immUniformThemeColor(TH_VIEW_OVERLAY); immBegin(GL_LINES, 16); diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c index 7a826c16e75..4131a5c33c7 100644 --- a/source/blender/editors/space_view3d/view3d_walk.c +++ b/source/blender/editors/space_view3d/view3d_walk.c @@ -345,9 +345,7 @@ static void drawWalkPixel(const struct bContext *UNUSED(C), ARegion *ar, void *a immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); - unsigned char crosshair_color[3]; - UI_GetThemeColor3ubv(TH_VIEW_OVERLAY, crosshair_color); - immUniformColor3ubv(crosshair_color); + immUniformThemeColor(TH_VIEW_OVERLAY); immBegin(GL_LINES, 8); |