diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-09-26 01:49:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-09-26 01:49:50 +0300 |
commit | 682c64d3e1f85c82eab0397b5eca3256af188227 (patch) | |
tree | 846482f81d20b131dcf4e0db331f80001aef76aa /source/blender/draw/modes/edit_curve_mode.c | |
parent | 5158da9e372228dfa880d818cd369a1730358de2 (diff) |
Curve Edit: Fix handles glitch when MSAA is enable
Diffstat (limited to 'source/blender/draw/modes/edit_curve_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_curve_mode.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/source/blender/draw/modes/edit_curve_mode.c b/source/blender/draw/modes/edit_curve_mode.c index 54541680b9f..7526d0a47f4 100644 --- a/source/blender/draw/modes/edit_curve_mode.c +++ b/source/blender/draw/modes/edit_curve_mode.c @@ -292,22 +292,14 @@ static void EDIT_CURVE_draw_scene(void *vedata) MULTISAMPLE_SYNC_ENABLE(dfbl, dtxl); - /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ - /* - * DRW_framebuffer_texture_detach(dtxl->depth); - * DRW_framebuffer_bind(fbl->custom_fb); - * DRW_draw_pass(psl->pass); - * DRW_framebuffer_texture_attach(dfbl->default_fb, dtxl->depth, 0, 0); - * DRW_framebuffer_bind(dfbl->default_fb); - */ - - /* ... or just render passes on default framebuffer. */ DRW_draw_pass(psl->wire_pass); - DRW_draw_pass(psl->overlay_edge_pass); - DRW_draw_pass(psl->overlay_vert_pass); MULTISAMPLE_SYNC_DISABLE(dfbl, dtxl) + /* Thoses passes don't write to depth and are AA'ed using other tricks. */ + DRW_draw_pass(psl->overlay_edge_pass); + DRW_draw_pass(psl->overlay_vert_pass); + /* If you changed framebuffer, double check you rebind * the default one with its textures attached before finishing */ } |