From 36d457e8872ca9c6a779d671b65999e1706797ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 2 Oct 2018 14:35:33 +0200 Subject: DRW: Fix assert in texture paint --- source/blender/draw/modes/paint_texture_mode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/draw/modes/paint_texture_mode.c') diff --git a/source/blender/draw/modes/paint_texture_mode.c b/source/blender/draw/modes/paint_texture_mode.c index 90c1de070df..2792c59b805 100644 --- a/source/blender/draw/modes/paint_texture_mode.c +++ b/source/blender/draw/modes/paint_texture_mode.c @@ -244,6 +244,7 @@ static void PAINT_TEXTURE_cache_init(void *vedata) DRWShadingGroup *grp = DRW_shgroup_create(e_data.image_sh, psl->image_faces); DRW_shgroup_uniform_texture(grp, "image", tex); DRW_shgroup_uniform_float(grp, "alpha", &draw_ctx->v3d->overlay.texture_paint_mode_opacity, 1); + DRW_shgroup_uniform_block(grp, "globalsBlock", globals_ubo); stl->g_data->shgroup_image_array[0] = grp; } else { -- cgit v1.2.3