fix for error in mask drawing, was using glVertex3fv on 2d verts. (buffer overrun)
authorCampbell Barton <ideasman42@gmail.com>
Tue, 2 Oct 2012 01:10:18 +0000 (01:10 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 2 Oct 2012 01:10:18 +0000 (01:10 +0000)
source/blender/editors/mask/mask_draw.c

index fe6567424b6b0d6bd0be991d63845c3112e1e2a0..a60b771d17949e6aa52cfbbdea4aba17529e9439 100644 (file)
@@ -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();
                }
        }