[Bf-blender-cvs] [1266a36b877] blender2.8: UV Editor: Fix memleak with loop_vbo and loop_batch.
Germano
noreply at git.blender.org
Thu Apr 19 16:24:19 CEST 2018
Commit: 1266a36b877079a7fe05e5b8e0b879a88cb74c1b
Author: Germano
Date: Thu Apr 19 11:22:16 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB1266a36b877079a7fe05e5b8e0b879a88cb74c1b
UV Editor: Fix memleak with loop_vbo and loop_batch.
===================================================================
M source/blender/editors/uvedit/uvedit_draw.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list