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>2012-10-02 05:10:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-02 05:10:18 +0400
commit959dc02f96b9366b3a73acf918ca0360c55d387f (patch)
treead071dbd866d86ab2dfffbe8603d52299f5a8ddf
parent9a8e82ae561db67f057fbb1799d1341b6d14018c (diff)
fix for error in mask drawing, was using glVertex3fv on 2d verts. (buffer overrun)
-rw-r--r--source/blender/editors/mask/mask_draw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c
index fe6567424b6..a60b771d179 100644
--- a/source/blender/editors/mask/mask_draw.c
+++ b/source/blender/editors/mask/mask_draw.c
@@ -202,16 +202,16 @@ static void draw_spline_points(MaskLayer *masklay, MaskSpline *spline,
glLineWidth(3);
glColor4ubv(rgb_gray);
glBegin(GL_LINES);
- glVertex3fv(vert);
- glVertex3fv(handle);
+ glVertex2fv(vert);
+ glVertex2fv(handle);
glEnd();
glLineWidth(1);
}
glColor3ubv(rgb_spline);
glBegin(GL_LINES);
- glVertex3fv(vert);
- glVertex3fv(handle);
+ glVertex2fv(vert);
+ glVertex2fv(handle);
glEnd();
}
@@ -226,7 +226,7 @@ static void draw_spline_points(MaskLayer *masklay, MaskSpline *spline,
glColor3f(0.5f, 0.5f, 0.0f);
glBegin(GL_POINTS);
- glVertex3fv(vert);
+ glVertex2fv(vert);
glEnd();
/* draw handle points */
@@ -242,7 +242,7 @@ static void draw_spline_points(MaskLayer *masklay, MaskSpline *spline,
}
glBegin(GL_POINTS);
- glVertex3fv(handle);
+ glVertex2fv(handle);
glEnd();
}
}