[Bf-blender-cvs] [7d865bc4ab3] blender2.8: Fix T53748: uniform `globalsBlock` was not being added was not being added to the shaders of the curves handles

Germano noreply at git.blender.org
Wed Jan 10 03:09:04 CET 2018


Commit: 7d865bc4ab3379e706f0378374efc20c311681a4
Author: Germano
Date:   Wed Jan 10 00:08:51 2018 -0200
Branches: blender2.8
https://developer.blender.org/rB7d865bc4ab3379e706f0378374efc20c311681a4

Fix T53748: uniform `globalsBlock` was not being added was not being added to the shaders of the curves handles

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

M	source/blender/draw/modes/edit_curve_mode.c

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

diff --git a/source/blender/draw/modes/edit_curve_mode.c b/source/blender/draw/modes/edit_curve_mode.c
index d1c40fe9b03..3c82ecab39d 100644
--- a/source/blender/draw/modes/edit_curve_mode.c
+++ b/source/blender/draw/modes/edit_curve_mode.c
@@ -201,6 +201,7 @@ static void EDIT_CURVE_cache_init(void *vedata)
 
 		DRWShadingGroup *overlay_edge_shgrp = DRW_shgroup_create(e_data.overlay_edge_sh, psl->overlay_edge_pass);
 		DRW_shgroup_uniform_vec2(overlay_edge_shgrp, "viewportSize", DRW_viewport_size_get(), 1);
+		DRW_shgroup_uniform_block(overlay_edge_shgrp, "globalsBlock", globals_ubo);
 		stl->g_data->overlay_edge_shgrp = overlay_edge_shgrp;



More information about the Bf-blender-cvs mailing list