diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-02-26 22:07:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-02-26 22:07:39 +0300 |
commit | f4cc9ba4c369dae29e37421bc2caee66b82b1b6f (patch) | |
tree | 8049fcd5597c4d4c3be0fa290b765ad5ca940e6e /source/blender/editors/space_view3d/drawobject.c | |
parent | fa7e4cc685d4f2af50a36ce8c5bc61d1dd918bae (diff) |
V3D: Vertex selection: Fix opengl error.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 75c217c4f0c..896b24d3086 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -9623,7 +9623,7 @@ static void bbs_mesh_face(BMEditMesh *em, DerivedMesh *UNUSED(dm), const bool us GPU_select_index_get(0, &selcol); batch = DRW_mesh_batch_cache_get_triangles_with_select_mask(me, true); GWN_batch_program_set_builtin(batch, GPU_SHADER_3D_UNIFORM_COLOR_U32); - GWN_batch_uniform_1i(batch, "color", selcol); + GWN_batch_uniform_1ui(batch, "color", selcol); GWN_batch_draw(batch); } } @@ -9753,7 +9753,7 @@ static void bbs_mesh_solid_verts(const EvaluationContext *UNUSED(eval_ctx), Scen GPU_select_index_get(0, &selcol); batch = DRW_mesh_batch_cache_get_triangles_with_select_mask(me, true); GWN_batch_program_set_builtin(batch, GPU_SHADER_3D_UNIFORM_COLOR_U32); - GWN_batch_uniform_1i(batch, "color", selcol); + GWN_batch_uniform_1ui(batch, "color", selcol); GWN_batch_draw(batch); } |