From b8c4be0844272fa2b9e10cdf9193e9988a0deacc Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 11 Apr 2017 14:30:23 +0200 Subject: [PATCH] FIx copy/paste mistake in own previous commit. --- .../intern/manipulator_library/arrow2d_manipulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c index a12617ba94f..ad5f2f6251b 100644 --- a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c +++ b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c @@ -77,7 +77,7 @@ static void arrow2d_draw_geom(ArrowManipulator2D *arrow, const float origin[2], const float len = arrow->line_len; const float draw_line_ofs = (arrow->manipulator.line_width * 0.5f) / arrow->manipulator.scale; - unsigned int pos = VertexFormat_add_attrib(immVertexFormat(), "pos", COMP_F32, 3, KEEP_FLOAT); + unsigned int pos = VertexFormat_add_attrib(immVertexFormat(), "pos", COMP_F32, 2, KEEP_FLOAT); gpuPushMatrix(); gpuTranslate2fv(origin);