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:
authorClément Foucault <foucault.clem@gmail.com>2022-04-05 16:07:27 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-04-05 16:08:05 +0300
commitfc848e9440be57ed42bbcf42c00d0546ca0229fd (patch)
tree6d78161004f510a3a1588814a337be69a31cf714
parentd5550c7b2c6b3278444f1f377d62776736c5dff9 (diff)
Fix T97010 GPencil: Artifacts on Grease Pencil
Was caused by wrong name for uniform update. Regression introduced in rBeccb0b222e34
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 585a508d9ce..4f520e61936 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -276,7 +276,7 @@ void GPENCIL_cache_init(void *ved)
GPUShader *sh = GPENCIL_shader_depth_merge_get();
grp = DRW_shgroup_create(sh, psl->merge_depth_ps);
DRW_shgroup_uniform_texture_ref(grp, "depthBuf", &pd->depth_tx);
- DRW_shgroup_uniform_bool(grp, "gpStrokeOrder3d", &pd->is_stroke_order_3d, 1);
+ DRW_shgroup_uniform_bool(grp, "strokeOrder3d", &pd->is_stroke_order_3d, 1);
DRW_shgroup_uniform_vec4(grp, "gpModelMatrix", pd->object_bound_mat[0], 4);
DRW_shgroup_call_procedural_triangles(grp, NULL, 1);
}