FIx copy/paste mistake in own previous commit.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 11 Apr 2017 12:30:23 +0000 (14:30 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 11 Apr 2017 13:19:00 +0000 (15:19 +0200)
source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c

index a12617ba94f7a997fc85cdc68e56d63e46fafc0a..ad5f2f6251b1ddfae108d25b914d54e45742018e 100644 (file)
@@ -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);