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:22:16 +0300
committerGermano <germano.costa@ig.com.br>2018-04-19 17:22:16 +0300
commit1266a36b877079a7fe05e5b8e0b879a88cb74c1b (patch)
tree5aee5dc9343e4cd0cfaa8a97b883142cd9ee0e2b /source/blender/editors/uvedit
parentec86bebb87ae7a148e27b6e8d7bdbdd3d7358820 (diff)
UV Editor: Fix memleak with loop_vbo and loop_batch.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c
index 2bfde68bf9f..a47884b431c 100644
--- a/source/blender/editors/uvedit/uvedit_draw.c
+++ b/source/blender/editors/uvedit/uvedit_draw.c
@@ -932,14 +932,14 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, ViewLayer *view_layer, Obje
immUnbindProgram();
}
}
-
- GWN_vertbuf_discard(loop_vbo);
- GWN_batch_discard(loop_batch);
}
else {
immUnbindProgram();
}
+ GWN_vertbuf_discard(loop_vbo);
+ GWN_batch_discard(loop_batch);
+
if (sima->flag & SI_SMOOTH_UV) {
glDisable(GL_LINE_SMOOTH);
glDisable(GL_BLEND);