GPU: Refactor GPU_batch_draw_range_ex
authorClément Foucault <foucault.clem@gmail.com>
Wed, 22 May 2019 09:31:49 +0000 (11:31 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 22 May 2019 11:29:05 +0000 (13:29 +0200)
commit60319e25f246128f51009c2f3bb731e4218bd008
treea1b9b9a9127f09f2e1644fa4ab79e898ae05e6cc
parent55780d9866ec9ab93f7f25f2ada41ae5d6e9dabb
GPU: Refactor GPU_batch_draw_range_ex

Rename it to GPU_batch_draw_advanced and use base instance when possible.

Also add GPU_batch_bind to bind the vao independantly of drawing commands.
source/blender/draw/intern/draw_manager.c
source/blender/draw/intern/draw_manager_exec.c
source/blender/editors/interface/interface_widgets.c
source/blender/editors/mesh/editmesh_knife.c
source/blender/editors/uvedit/uvedit_draw.c
source/blender/gpu/GPU_batch.h
source/blender/gpu/intern/gpu_batch.c