diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-07-26 20:58:15 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-07-27 15:51:44 +0300 |
commit | ec6170061e726ee2c2700f48f9e47ebf7e3ec875 (patch) | |
tree | e4427f2e558ee6fce62f88360da8650a46f2ddf1 /source/blender/draw/modes/object_mode.c | |
parent | 5bfa3cf6e9a09c2cabbdb79d3d02024fcbc3a296 (diff) |
DRW: Add stats group to eevee and object mode.
Diffstat (limited to 'source/blender/draw/modes/object_mode.c')
-rw-r--r-- | source/blender/draw/modes/object_mode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index 173580adaef..70ee0dbc48b 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -1815,6 +1815,7 @@ static void OBJECT_draw_scene(void *vedata) float clearcol[4] = {0.0f, 0.0f, 0.0f, 0.0f}; if (DRW_state_is_fbo()) { + DRW_stats_group_start("Outlines"); /* attach temp textures */ DRW_framebuffer_texture_attach(fbl->outlines, e_data.outlines_depth_tx, 0, 0); DRW_framebuffer_texture_attach(fbl->outlines, e_data.outlines_color_tx, 0, 0); @@ -1825,6 +1826,7 @@ static void OBJECT_draw_scene(void *vedata) DRW_framebuffer_clear(true, true, false, clearcol, 1.0f); DRW_draw_pass(psl->outlines); + /* detach textures */ DRW_framebuffer_texture_detach(e_data.outlines_depth_tx); @@ -1857,6 +1859,7 @@ static void OBJECT_draw_scene(void *vedata) /* restore main framebuffer */ DRW_framebuffer_bind(dfbl->default_fb); + DRW_stats_group_end(); } /* This needs to be drawn after the oultine */ |