diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-16 20:44:34 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-16 20:44:34 +0300 |
commit | af61b5eb0c1bef93e8df1434b174944e2b40445d (patch) | |
tree | dad7dbe831385f038af54037fb21b9655248288a /source/blender/editors/space_image/image_draw.c | |
parent | ae071305404e61f696f3da46b00bf93aa6a4a5a5 (diff) |
cleanup use of immUniformColor
- use best function for the job
- don't specify alpha if 100%
- 'f' for floating point literals
Diffstat (limited to 'source/blender/editors/space_image/image_draw.c')
-rw-r--r-- | source/blender/editors/space_image/image_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c index f66234ab22c..cdd9906271c 100644 --- a/source/blender/editors/space_image/image_draw.c +++ b/source/blender/editors/space_image/image_draw.c @@ -355,7 +355,7 @@ void ED_image_draw_info(Scene *scene, ARegion *ar, bool color_manage, bool use_d immRecti(pos, color_rect_half.xmin, color_rect_half.ymin, color_quater_x, color_quater_y); glEnable(GL_BLEND); - immUniformColor4f(UNPACK3(finalcol), fp ? fp[3] : (cp[3] / 255.0f)); + immUniformColor3fvAlpha(finalcol, fp ? fp[3] : (cp[3] / 255.0f)); immRecti(pos, color_rect.xmin, color_rect.ymin, color_rect.xmax, color_rect.ymax); glDisable(GL_BLEND); } |