Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-01 07:32:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-01 13:32:38 +0300
commit7aeb94686fb67d2707bb264b7e2d576c863b8ff7 (patch)
treeff1c321cd217b9e60e6f9362781463021f01a076 /source/blender/editors/space_image
parente66629c128258a325ef7d898fb352e3d2552bbcb (diff)
Fix line width for image sample size display
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 93c49ab726a..cec2e1c68d9 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -65,6 +65,7 @@
#include "DEG_depsgraph.h"
#include "GPU_draw.h"
+#include "GPU_state.h"
#include "GPU_immediate.h"
#include "IMB_colormanagement.h"
@@ -2760,6 +2761,7 @@ static void image_sample_draw(const bContext *C, ARegion *ar, void *arg_info)
glEnable(GL_COLOR_LOGIC_OP);
glLogicOp(GL_XOR);
+ GPU_line_width(1.0f);
imm_draw_box_wire_2d(pos,
(float)sample_rect_fl.xmin,
(float)sample_rect_fl.ymin,