Mesh Selection: Port to batch cache request
authorClément Foucault <foucault.clem@gmail.com>
Sat, 22 Dec 2018 22:57:12 +0000 (23:57 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 11 Jan 2019 15:00:23 +0000 (16:00 +0100)
commit55ddb21b7ca79664922699a383130881b7761f43
treed0b5170c67d8432e91c1d96bf83af0929fad767f
parent4c0c4e7f9fed6e675d11363865594fb294bdc4b6
Mesh Selection: Port to batch cache request

This makes it more future proof and remove baked id offset inside the vbos.
Instead we add the offset as a uniform. This makes it possible to reuse
the vbos instead of discarding them all the time.

Also using batch request may reduce batches creation time.
source/blender/draw/intern/draw_cache_impl.h
source/blender/draw/intern/draw_cache_impl_mesh.c
source/blender/editors/space_view3d/drawobject.c