diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-03-20 16:59:58 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-03-20 17:19:03 +0300 |
commit | 060243a8ae5644f35c85b0b9aef495f06ea3ecbe (patch) | |
tree | 58a88d476dc28644e118a380db1a36d170510a23 /source/blender/draw/modes | |
parent | 9ca0e082369eb2ea7cc3ba529805ecd085136398 (diff) |
Edit Mode Engine: Remove unecessary matrix.
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index fee2a284d64..e1016c87c1d 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -303,11 +303,10 @@ static void EDIT_MESH_cache_init(void) /* we need a full screen pass to combine the result */ struct Batch *quad = DRW_cache_fullscreen_quad_get(); - static float mat[4][4]; /* not even used but avoid crash */ psl->mix_occlude = DRW_pass_create("Mix Occluded Wires", DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND); DRWShadingGroup *mix_shgrp = DRW_shgroup_create(e_data.overlay_mix_sh, psl->mix_occlude); - DRW_shgroup_call_add(mix_shgrp, quad, mat); + 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); |