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/gpencil/annotate_draw.c | |
parent | fbe7c848c20c1f3fef0b2ee47b9d2d2fa19a5b5e (diff) |
Cleanup: GPU: Move program point size to GPU_state
Diffstat (limited to 'source/blender/editors/gpencil/annotate_draw.c')
-rw-r--r-- | source/blender/editors/gpencil/annotate_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/annotate_draw.c b/source/blender/editors/gpencil/annotate_draw.c index f325422fec7..a853e2bcc9a 100644 --- a/source/blender/editors/gpencil/annotate_draw.c +++ b/source/blender/editors/gpencil/annotate_draw.c @@ -561,7 +561,7 @@ static void annotation_draw_strokes(bGPdata *UNUSED(gpd), short lthick, const float color[4]) { - GPU_enable_program_point_size(); + GPU_program_point_size(true); for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gps->next) { /* check if stroke can be drawn */ @@ -622,7 +622,7 @@ static void annotation_draw_strokes(bGPdata *UNUSED(gpd), } } - GPU_disable_program_point_size(); + GPU_program_point_size(false); } /* Draw selected verts for strokes being edited */ @@ -658,7 +658,7 @@ static void annotation_draw_strokes_edit(bGPdata *gpd, } } - GPU_enable_program_point_size(); + GPU_program_point_size(true); /* draw stroke verts */ for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gps->next) { @@ -751,7 +751,7 @@ static void annotation_draw_strokes_edit(bGPdata *gpd, immUnbindProgram(); } - GPU_disable_program_point_size(); + GPU_program_point_size(false); /* clear depth mask */ if (dflag & GP_DRAWDATA_ONLY3D) { |