diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-09 23:08:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-10 00:55:19 +0300 |
commit | e32ec677c3d03881703b34fc008e9141e1ee9e2b (patch) | |
tree | 7a16af4d3293e26882ce843fd02dca7218609951 /source/blender/draw/modes/edit_mesh_mode.c | |
parent | 9075f934aae2cccad18ba96130650965875f2fa1 (diff) |
Draw Manager: Simplify usage and check for errors.
Diffstat (limited to 'source/blender/draw/modes/edit_mesh_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index d46b50fb1c9..f107ea095e4 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -382,9 +382,9 @@ static void EDIT_MESH_cache_init(void *vedata) DRWShadingGroup *mix_shgrp = DRW_shgroup_create(e_data.overlay_mix_sh, psl->mix_occlude); DRW_shgroup_call_add(mix_shgrp, quad, NULL); DRW_shgroup_uniform_float(mix_shgrp, "alpha", &backwire_opacity, 1); - DRW_shgroup_uniform_buffer(mix_shgrp, "wireColor", &txl->occlude_wire_color_tx, 0); - DRW_shgroup_uniform_buffer(mix_shgrp, "wireDepth", &txl->occlude_wire_depth_tx, 2); - DRW_shgroup_uniform_buffer(mix_shgrp, "sceneDepth", &dtxl->depth, 3); + DRW_shgroup_uniform_buffer(mix_shgrp, "wireColor", &txl->occlude_wire_color_tx); + DRW_shgroup_uniform_buffer(mix_shgrp, "wireDepth", &txl->occlude_wire_depth_tx); + DRW_shgroup_uniform_buffer(mix_shgrp, "sceneDepth", &dtxl->depth); } } |