From 1b1db0903003b9092daf9d42e8606973bcc5ad99 Mon Sep 17 00:00:00 2001 From: raster Date: Tue, 13 Oct 2009 01:44:46 +0000 Subject: [PATCH] free up stuff on context free. still need to do programs git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@43046 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_common/evas_gl_context.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/modules/engines/gl_common/evas_gl_context.c b/src/modules/engines/gl_common/evas_gl_context.c index 837169c..d0c784b 100644 --- a/src/modules/engines/gl_common/evas_gl_context.c +++ b/src/modules/engines/gl_common/evas_gl_context.c @@ -143,7 +143,10 @@ evas_gl_common_context_free(Evas_GL_Context *gc) gc->references--; if (gc->references > 0) return; -/* + while (gc->images) + { + evas_gl_common_image_free(gc->images->data); + } while (gc->tex.whole) { evas_gl_common_texture_free(gc->tex.whole->data); @@ -156,11 +159,6 @@ evas_gl_common_context_free(Evas_GL_Context *gc) evas_gl_common_texture_free(gc->tex.atlas[i][j]); } } - while (gc->images) - { - evas_gl_common_image_free(gc->images->data); - } - */ // FIXME: free shader.rect.prog etc. etc. free(gc->array.vertex); -- 2.7.4