From 2100dba34bbec7fffdff787c01d3270ab7d3dfbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 28 May 2019 17:14:22 +0200 Subject: Cleanup: GPU: Move program point size to GPU_state --- source/blender/editors/space_graph/graph_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_graph') 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); } -- cgit v1.2.3