diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-03-05 20:09:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-03-05 20:10:08 +0300 |
commit | b36f93fa374dcf8a6649de1134adcb8c997350fa (patch) | |
tree | 679f566a4a8f8d84d20c1b13dfca4fb9d21a66ad /source/blender/draw/engines | |
parent | ff96f527fdb72b73e5f175e84d805f36d921c90d (diff) |
Clay Engine: support draw callbacks
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/clay/clay.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/clay/clay.c b/source/blender/draw/engines/clay/clay.c index 7f55ee03a3b..cd19595b107 100644 --- a/source/blender/draw/engines/clay/clay.c +++ b/source/blender/draw/engines/clay/clay.c @@ -715,6 +715,8 @@ static void CLAY_view_draw(RenderEngine *UNUSED(engine), const bContext *context /* Start Drawing */ DRW_draw_background(); + DRW_draw_callbacks_pre_scene(); + /* Pass 1 : Depth pre-pass */ DRW_draw_pass(psl->depth_pass); DRW_draw_pass(psl->depth_pass_cull); @@ -730,6 +732,8 @@ static void CLAY_view_draw(RenderEngine *UNUSED(engine), const bContext *context /* At this point all shaded geometry should have been rendered and their depth written */ DRW_draw_mode_overlays(); + DRW_draw_callbacks_post_scene(); + /* Always finish by this */ DRW_state_reset(); } |