UVEdit: Port texpaint_loop_wire to batch request
authorClément Foucault <foucault.clem@gmail.com>
Thu, 10 Jan 2019 21:22:42 +0000 (22:22 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 11 Jan 2019 15:00:23 +0000 (16:00 +0100)
commit1c91b6ee29845c323ffd3f477b56f3a68f4e76be
treed032aa1fa9d56511b96da64412a0d91439817d13
parent621a6d4a5de872a94f81d239ff627d24afecc56b
UVEdit: Port texpaint_loop_wire to batch request

This removes code duplication and put an end to the old "create at request"
batch creation.

Also it uses the same vbo as the uv layer used for shading. Reducing VRAM
usage.

Also fixes the modified uv display in uv edit mode.
source/blender/draw/intern/draw_cache_impl.h
source/blender/draw/intern/draw_cache_impl_mesh.c
source/blender/editors/uvedit/uvedit_draw.c
source/blender/gpu/GPU_shader.h
source/blender/gpu/intern/gpu_shader.c
source/blender/gpu/shaders/gpu_shader_2D_vert.glsl