diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-28 18:14:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-28 18:19:42 +0300 |
commit | 2100dba34bbec7fffdff787c01d3270ab7d3dfbb (patch) | |
tree | 6537a82b5ffe39e64da79faf8a0b875804567409 /source/blender/editors/space_graph/graph_draw.c | |
parent | fbe7c848c20c1f3fef0b2ee47b9d2d2fa19a5b5e (diff) |
Cleanup: GPU: Move program point size to GPU_state
Diffstat (limited to 'source/blender/editors/space_graph/graph_draw.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 062c9f86fab..b16374e0d66 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -292,7 +292,7 @@ static void draw_fcurve_vertices(ARegion *ar, FCurve *fcu, bool do_handles, bool uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); GPU_blend(true); - GPU_enable_program_point_size(); + GPU_program_point_size(true); /* draw the two handles first (if they're shown, the curve doesn't * have just a single keyframe, and the curve is being edited) */ @@ -303,7 +303,7 @@ static void draw_fcurve_vertices(ARegion *ar, FCurve *fcu, bool do_handles, bool /* draw keyframes over the handles */ draw_fcurve_keyframe_vertices(fcu, v2d, !(fcu->flag & FCURVE_PROTECTED), pos); - GPU_disable_program_point_size(); + GPU_program_point_size(false); GPU_blend(false); } |