Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano <germano.costa@ig.com.br>2018-04-19 17:24:10 +0300
committerGermano <germano.costa@ig.com.br>2018-04-19 17:24:10 +0300
commitffe02e17b2fa39865ee4cfa53d4f6c06bdfe31d9 (patch)
treefa5a25673a6c8f4fe0caddb748ce839fd5d7e45c /source/blender/editors/uvedit
parent1266a36b877079a7fe05e5b8e0b879a88cb74c1b (diff)
GWN Immediate: use GWN_BATCH_OWNS_VBO for created with imm immBeginBatch.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_draw.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c
index a47884b431c..bcdc8193137 100644
--- a/source/blender/editors/uvedit/uvedit_draw.c
+++ b/source/blender/editors/uvedit/uvedit_draw.c
@@ -414,8 +414,6 @@ static void draw_uvs_lineloop_bmfaces(BMesh *bm, const int cd_loop_uv_offset, co
index += efa->len;
}
GWN_batch_program_use_end(loop_batch);
-
- GWN_vertbuf_discard(loop_batch->verts[0]);
GWN_batch_discard(loop_batch);
immUnbindProgram();
@@ -908,7 +906,6 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, ViewLayer *view_layer, Obje
immEnd();
GWN_batch_draw(flat_edges_batch);
- GWN_vertbuf_discard(flat_edges_batch->verts[0]);
GWN_batch_discard(flat_edges_batch);
immUnbindProgram();
@@ -937,7 +934,6 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, ViewLayer *view_layer, Obje
immUnbindProgram();
}
- GWN_vertbuf_discard(loop_vbo);
GWN_batch_discard(loop_batch);
if (sima->flag & SI_SMOOTH_UV) {