diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-10 00:55:02 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-10 00:55:19 +0300 |
commit | 707756d2770afbd8fad0702409d145b7ca990459 (patch) | |
tree | 26ffacffbfb4935721fb27cb522e8a057af2f59b /source/blender/draw/modes/edit_mesh_mode.c | |
parent | 827760981014386f43b80500b18e9d846192677c (diff) |
Draw Manager: Extend simplification to UBOs & fix a context error.
Diffstat (limited to 'source/blender/draw/modes/edit_mesh_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index f107ea095e4..f51274b8fee 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -268,7 +268,7 @@ static DRWPass *edit_mesh_create_overlay_pass( DRW_STATE_WRITE_COLOR | DRW_STATE_POINT | statemod); *r_face_shgrp = DRW_shgroup_create(tri_sh, pass); - DRW_shgroup_uniform_block(*r_face_shgrp, "globalsBlock", globals_ubo, 0); + DRW_shgroup_uniform_block(*r_face_shgrp, "globalsBlock", globals_ubo); DRW_shgroup_uniform_vec2(*r_face_shgrp, "viewportSize", DRW_viewport_size_get(), 1); DRW_shgroup_uniform_float(*r_face_shgrp, "faceAlphaMod", faceAlpha, 1); @@ -371,7 +371,7 @@ static void EDIT_MESH_cache_init(void *vedata) "Front Face Color", DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND); stl->g_data->facefill_occluded_shgrp = DRW_shgroup_create(e_data.overlay_facefill_sh, psl->facefill_occlude); - DRW_shgroup_uniform_block(stl->g_data->facefill_occluded_shgrp, "globalsBlock", globals_ubo, 0); + DRW_shgroup_uniform_block(stl->g_data->facefill_occluded_shgrp, "globalsBlock", globals_ubo); /* we need a full screen pass to combine the result */ struct Batch *quad = DRW_cache_fullscreen_quad_get(); |