[Bf-blender-cvs] [03a7f068d04] temp-gpencil-masking: Change pass flags

Antonio Vazquez noreply at git.blender.org
Tue Apr 20 19:17:14 CEST 2021


Commit: 03a7f068d047590f05b966702431314ec1e9bbd3
Author: Antonio Vazquez
Date:   Tue Apr 20 19:17:10 2021 +0200
Branches: temp-gpencil-masking
https://developer.blender.org/rB03a7f068d047590f05b966702431314ec1e9bbd3

Change pass flags

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

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 6a5a728b6fb..f6c2f2abec0 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -309,7 +309,7 @@ void GPENCIL_cache_init(void *ved)
     DRW_shgroup_call_procedural_triangles(grp, NULL, 1);
   }
   {
-    DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_LOGIC_INVERT;
+    DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND_ALPHA_PREMUL;
     DRW_PASS_CREATE(psl->mask_intersect_ps, state);
 
     GPUShader *sh = GPENCIL_shader_mask_intersect_get();



More information about the Bf-blender-cvs mailing list