[Bf-blender-cvs] [c5e51222db5] temp-gpencil-masking: Set test texture

Antonio Vazquez noreply at git.blender.org
Wed Apr 21 18:39:18 CEST 2021


Commit: c5e51222db5e8d59ccdc7de5b5803f24c2497ee6
Author: Antonio Vazquez
Date:   Wed Apr 21 18:38:38 2021 +0200
Branches: temp-gpencil-masking
https://developer.blender.org/rBc5e51222db5e8d59ccdc7de5b5803f24c2497ee6

Set test texture

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

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 701e659e965..c14159b5432 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -314,6 +314,7 @@ void GPENCIL_cache_init(void *ved)
 
     GPUShader *sh = GPENCIL_shader_mask_intersect_get();
     grp = DRW_shgroup_create(sh, psl->mask_intersect_ps);
+    DRW_shgroup_uniform_texture_ref(grp, "maskBuf", &pd->mask_tx);
     DRW_shgroup_call_procedural_triangles(grp, NULL, 1);
   }
   Camera *cam = (pd->camera != NULL) ? pd->camera->data : NULL;



More information about the Bf-blender-cvs mailing list