[Bf-blender-cvs] [682c64d3e1f] blender2.8: Curve Edit: Fix handles glitch when MSAA is enable

Clément Foucault noreply at git.blender.org
Wed Sep 26 00:49:55 CEST 2018


Commit: 682c64d3e1f85c82eab0397b5eca3256af188227
Author: Clément Foucault
Date:   Wed Sep 26 00:49:22 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB682c64d3e1f85c82eab0397b5eca3256af188227

Curve Edit: Fix handles glitch when MSAA is enable

===================================================================

M	source/blender/draw/modes/edit_curve_mode.c

===================================================================

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 */
 }



More information about the Bf-blender-cvs mailing list