diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-01-04 11:30:18 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-01-08 00:32:35 +0300 |
commit | e20b30a1d8573ab687e05da606ee62e2f079a066 (patch) | |
tree | 125677a0f788f017edbe837f20eb27e6fd63c799 /source/blender/editors/space_graph/graph_draw.c | |
parent | 261ac69f57a9daac370f0a25af955d725d6c77be (diff) |
OpenGL: remove glPointSize hack
Diffstat (limited to 'source/blender/editors/space_graph/graph_draw.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_draw.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 51865ebcf90..5e1747692e1 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -102,10 +102,7 @@ static void draw_fcurve_modifier_controls_envelope(FModifier *fcm, View2D *v2d) /* for now, point color is fixed, and is white */ glColor3f(1.0f, 1.0f, 1.0f); - /* we use bgl points not standard gl points, to workaround vertex - * drawing bugs that some drivers have (probably legacy ones only though) - */ - bglBegin(GL_POINTS); + glBegin(GL_POINTS); for (i = 0, fed = env->data; i < env->totvert; i++, fed++) { /* only draw if visible * - min/max here are fixed, not relative @@ -115,7 +112,7 @@ static void draw_fcurve_modifier_controls_envelope(FModifier *fcm, View2D *v2d) glVertex2f(fed->time, fed->max); } } - bglEnd(); /* GL_POINTS */ + glEnd(); /* GL_POINTS */ glPointSize(1.0f); } @@ -132,10 +129,7 @@ static void draw_fcurve_vertices_keyframes(FCurve *fcu, SpaceIpo *UNUSED(sipo), const float fac = 0.05f * BLI_rctf_size_x(&v2d->cur); int i; - /* we use bgl points not standard gl points, to workaround vertex - * drawing bugs that some drivers have (probably legacy ones only though) - */ - bglBegin(GL_POINTS); + glBegin(GL_POINTS); for (i = 0; i < fcu->totvert; i++, bezt++) { /* as an optimization step, only draw those in view @@ -148,17 +142,17 @@ static void draw_fcurve_vertices_keyframes(FCurve *fcu, SpaceIpo *UNUSED(sipo), * - */ if ((bezt->f2 & SELECT) == sel) - bglVertex3fv(bezt->vec[1]); + glVertex3fv(bezt->vec[1]); } else { /* no check for selection here, as curve is not editable... */ /* XXX perhaps we don't want to even draw points? maybe add an option for that later */ - bglVertex3fv(bezt->vec[1]); + glVertex3fv(bezt->vec[1]); } } } - bglEnd(); /* GL_POINTS */ + glEnd(); /* GL_POINTS */ } |