UV Editor: Fix memleak with loop_vbo and loop_batch.
This commit is contained in:
parent
ec86bebb87
commit
1266a36b87
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue