[Bf-blender-cvs] [90152f6bcb0] greasepencil-object: Add Antialiasing to Grease Pencil

Antonio Vazquez noreply at git.blender.org
Mon Oct 2 11:08:00 CEST 2017


Commit: 90152f6bcb05ba0410c18e05edec7ba8db640784
Author: Antonio Vazquez
Date:   Mon Oct 2 11:07:46 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB90152f6bcb05ba0410c18e05edec7ba8db640784

Add Antialiasing to Grease Pencil

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

M	source/blender/draw/engines/gpencil/gpencil_engine.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 4bac6db3600..f69035fe15e 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -650,18 +650,26 @@ static void GPENCIL_draw_scene(void *vedata)
 					gpencil_vfx_passes(vedata, cache);
 					/* Combine with default scene buffer always using tx_a as source texture */
 					DRW_framebuffer_bind(dfbl->default_fb);
+					
+					MULTISAMPLE_SYNC_ENABLE(dfbl)
 					/* Mix VFX Pass */
 					DRW_draw_pass(psl->mix_vfx_pass);
 					/* prepare for fast drawing */
 					gpencil_prepare_fast_drawing(stl, dfbl, fbl, psl->mix_vfx_pass_noblend, clearcol);
+
+					MULTISAMPLE_SYNC_DISABLE(dfbl)
 				}
 				else {
 					/* Combine with scene buffer without more passes */
 					DRW_framebuffer_bind(dfbl->default_fb);
-					/* Mix Pass: DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS */
+
+					MULTISAMPLE_SYNC_ENABLE(dfbl)
+						/* Mix Pass: DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS */
 					DRW_draw_pass(psl->mix_pass);
 					/* prepare for fast drawing */
 					gpencil_prepare_fast_drawing(stl, dfbl, fbl, psl->mix_pass_noblend, clearcol);
+
+					MULTISAMPLE_SYNC_DISABLE(dfbl)
 				}
 			}
 			/* edit points */



More information about the Bf-blender-cvs mailing list