diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-23 13:51:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-23 13:51:07 +0300 |
commit | cb817d9f38be052d67fc9393c1bba1ead8338194 (patch) | |
tree | bc521d817125ecc79a41e213c67bffd99c521d49 | |
parent | 3695513ff7d203fcb3309495016365614631f407 (diff) |
Cleanup: unused args
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 20 | ||||
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_engine.h | 3 |
2 files changed, 7 insertions, 16 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 1b8684c66df..ad191752dcc 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -357,8 +357,7 @@ static void set_wireframe_color(Object *ob, } /* create shading group for filling */ -static DRWShadingGroup *DRW_gpencil_shgroup_fill_create(GPENCIL_e_data *e_data, - GPENCIL_Data *vedata, +static DRWShadingGroup *DRW_gpencil_shgroup_fill_create(GPENCIL_Data *vedata, DRWPass *pass, GPUShader *shader, Object *ob, @@ -498,8 +497,7 @@ bool DRW_gpencil_onion_active(bGPdata *gpd) } /* create shading group for strokes */ -DRWShadingGroup *DRW_gpencil_shgroup_stroke_create(GPENCIL_e_data *e_data, - GPENCIL_Data *vedata, +DRWShadingGroup *DRW_gpencil_shgroup_stroke_create(GPENCIL_Data *vedata, DRWPass *pass, GPUShader *shader, Object *ob, @@ -650,8 +648,7 @@ DRWShadingGroup *DRW_gpencil_shgroup_stroke_create(GPENCIL_e_data *e_data, } /* create shading group for points */ -static DRWShadingGroup *DRW_gpencil_shgroup_point_create(GPENCIL_e_data *e_data, - GPENCIL_Data *vedata, +static DRWShadingGroup *DRW_gpencil_shgroup_point_create(GPENCIL_Data *vedata, DRWPass *pass, GPUShader *shader, Object *ob, @@ -1508,7 +1505,6 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data, if (gpd->runtime.sbuffer_size > 1) { if ((gp_style) && (gp_style->mode == GP_STYLE_MODE_LINE)) { stl->g_data->shgrps_drawing_stroke = DRW_gpencil_shgroup_stroke_create( - e_data, vedata, psl->drawing_pass, e_data->gpencil_stroke_sh, @@ -1524,7 +1520,6 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data, } else { stl->g_data->shgrps_drawing_stroke = DRW_gpencil_shgroup_point_create( - e_data, vedata, psl->drawing_pass, e_data->gpencil_point_sh, @@ -1692,8 +1687,7 @@ static void DRW_gpencil_shgroups_create(GPENCIL_e_data *e_data, case eGpencilBatchGroupType_Stroke: { const int len = elm->vertex_idx - start_stroke; - shgrp = DRW_gpencil_shgroup_stroke_create(e_data, - vedata, + shgrp = DRW_gpencil_shgroup_stroke_create(vedata, stroke_pass, e_data->gpencil_stroke_sh, ob, @@ -1715,8 +1709,7 @@ static void DRW_gpencil_shgroups_create(GPENCIL_e_data *e_data, case eGpencilBatchGroupType_Point: { const int len = elm->vertex_idx - start_point; - shgrp = DRW_gpencil_shgroup_point_create(e_data, - vedata, + shgrp = DRW_gpencil_shgroup_point_create(vedata, stroke_pass, e_data->gpencil_point_sh, ob, @@ -1739,8 +1732,7 @@ static void DRW_gpencil_shgroups_create(GPENCIL_e_data *e_data, case eGpencilBatchGroupType_Fill: { const int len = elm->vertex_idx - start_fill; - shgrp = DRW_gpencil_shgroup_fill_create(e_data, - vedata, + shgrp = DRW_gpencil_shgroup_fill_create(vedata, stroke_pass, e_data->gpencil_fill_sh, ob, diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h index 56dbab594fd..fa8745f3db9 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.h +++ b/source/blender/draw/engines/gpencil/gpencil_engine.h @@ -398,8 +398,7 @@ typedef struct GpencilBatchCache { } GpencilBatchCache; /* general drawing functions */ -struct DRWShadingGroup *DRW_gpencil_shgroup_stroke_create(struct GPENCIL_e_data *e_data, - struct GPENCIL_Data *vedata, +struct DRWShadingGroup *DRW_gpencil_shgroup_stroke_create(struct GPENCIL_Data *vedata, struct DRWPass *pass, struct GPUShader *shader, struct Object *ob, |