From b104057d001d2472cc55c7fa51cff3275e331523 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Sun, 12 Feb 2017 01:56:08 -0500 Subject: OpenGL: enable program point size for keyframes Allows vertex shader to determine how large to rasterize each point sprite. Forgot to do this before. --- source/blender/editors/space_nla/nla_draw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/space_nla/nla_draw.c') diff --git a/source/blender/editors/space_nla/nla_draw.c b/source/blender/editors/space_nla/nla_draw.c index 86eae70c0ff..e744a39fde9 100644 --- a/source/blender/editors/space_nla/nla_draw.c +++ b/source/blender/editors/space_nla/nla_draw.c @@ -146,6 +146,7 @@ static void nla_action_draw_keyframes(AnimData *adt, bAction *act, float y, floa unsigned int color_id = add_attrib(format, "color", COMP_U8, 4, NORMALIZE_INT_TO_FLOAT); unsigned int outline_color_id = add_attrib(format, "outlineColor", COMP_U8, 4, NORMALIZE_INT_TO_FLOAT); immBindBuiltinProgram(GPU_SHADER_KEYFRAME_DIAMOND); + GPU_enable_program_point_size(); immBegin(PRIM_POINTS, key_ct); /* - disregard the selection status of keyframes so they draw a certain way @@ -157,6 +158,7 @@ static void nla_action_draw_keyframes(AnimData *adt, bAction *act, float y, floa } immEnd(); + GPU_disable_program_point_size(); immUnbindProgram(); } -- cgit v1.2.3