diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-01-22 09:45:39 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-01-22 10:52:12 +0300 |
commit | 66d9efe765626887a911cd0415681bbd4b21c89c (patch) | |
tree | 56b7867b69757192966aadab66024b61ee948011 /source/blender/editors/space_image | |
parent | f2fdec3ab7e76fe42216b03b416e39ed81f5ff9c (diff) |
OpenGL: draw box outlines with lines, not rectangles
2 reasons:
- fewer state changes (PolygonMode)
- glRect goes away in later GL versions
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/image_draw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c index d36ab5e10e2..74f663e9b34 100644 --- a/source/blender/editors/space_image/image_draw.c +++ b/source/blender/editors/space_image/image_draw.c @@ -338,9 +338,7 @@ void ED_image_draw_info(Scene *scene, ARegion *ar, bool color_manage, bool use_d /* draw outline */ glColor3ub(128, 128, 128); - glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); - glRecti(color_rect.xmin, color_rect.ymin, color_rect.xmax, color_rect.ymax); - glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); + sdrawbox(color_rect.xmin, color_rect.ymin, color_rect.xmax, color_rect.ymax); dx += 1.75f * UI_UNIT_X; |