Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_shader_fx.c5
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);