diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-02-12 09:56:08 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-02-12 09:56:08 +0300 |
commit | b104057d001d2472cc55c7fa51cff3275e331523 (patch) | |
tree | 02b78998050a5807d471663f63e877b747ba1507 /source/blender/editors/space_clip/clip_dopesheet_draw.c | |
parent | 09bfc378895f320bcc12ac5c77252f58780e73fc (diff) |
OpenGL: enable program point size for keyframes
Allows vertex shader to determine how large to rasterize each point sprite. Forgot to do this before.
Diffstat (limited to 'source/blender/editors/space_clip/clip_dopesheet_draw.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_dopesheet_draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_clip/clip_dopesheet_draw.c b/source/blender/editors/space_clip/clip_dopesheet_draw.c index c381a58ba16..872e62dbc97 100644 --- a/source/blender/editors/space_clip/clip_dopesheet_draw.c +++ b/source/blender/editors/space_clip/clip_dopesheet_draw.c @@ -42,8 +42,6 @@ #include "ED_screen.h" #include "ED_clip.h" -#include "BIF_gl.h" - #include "WM_types.h" #include "UI_interface.h" @@ -54,6 +52,7 @@ #include "RNA_access.h" +#include "GPU_draw.h" #include "GPU_immediate.h" #include "clip_intern.h" /* own include */ @@ -221,7 +220,7 @@ void clip_draw_dopesheet_main(SpaceClip *sc, ARegion *ar, Scene *scene) 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, keyframe_ct); /* all same size with black outline */ @@ -276,6 +275,7 @@ void clip_draw_dopesheet_main(SpaceClip *sc, ARegion *ar, Scene *scene) } immEnd(); + GPU_disable_program_point_size(); immUnbindProgram(); } |