diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-22 17:35:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-22 17:35:37 +0300 |
commit | 287f1da92ae01f8272e7cc3c10dd5bca14cf78f4 (patch) | |
tree | c88172aa41f17d486eb32d597eda8404a79f9c14 /source/blender | |
parent | 04fa0511ca5ec305356a6060b25e2845053d62d6 (diff) |
Cleanup: unused vars
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_shader_fx.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c index 5d3944e34f0..9eb4123e5bc 100644 --- a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c +++ b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c @@ -110,10 +110,7 @@ static void GPENCIL_dof_nearfar(Object *camera, float coc, float nearfar[2]) if (camera == NULL) { return; } - - const DRWContextState *draw_ctx = DRW_context_state_get(); - Scene *scene = draw_ctx->scene; - Camera *cam = (Camera *)camera->data; + Camera *cam = camera->data; float fstop = cam->dof.aperture_fstop; float focus_dist = BKE_camera_object_dof_distance(camera); |