Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-08-26 14:25:15 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-08-26 14:32:57 +0300
commitd4f7c7f4cc8790cacecb77fd5124f4ef2b464314 (patch)
tree087010f82f51e9598d56cbf56e20c5e41dcf732a /source/blender/editors
parenta7e1963b634fc7deb072586d1faee76aa2669c90 (diff)
GPencil: Fix Assert using fill tool
With the new changes in the Draw Manager, GPU_depth_mask must be set to ON, before clear depth.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index eb4304a3746..247cc218c2f 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -454,6 +454,7 @@ static bool gpencil_render_offscreen(tGPDfill *tgpf)
GPU_matrix_push();
GPU_matrix_identity_set();
+ GPU_depth_mask(true);
GPU_clear_color(0.0f, 0.0f, 0.0f, 0.0f);
GPU_clear_depth(1.0f);
@@ -467,6 +468,8 @@ static bool gpencil_render_offscreen(tGPDfill *tgpf)
const float ink[4] = {1.0f, 0.0f, 0.0f, 1.0f};
gpencil_draw_datablock(tgpf, ink);
+ GPU_depth_mask(false);
+
GPU_matrix_pop_projection();
GPU_matrix_pop();