free up stuff on context free. still need to do programs

SVN revision: 43046
This commit is contained in:
Carsten Haitzler 2009-10-13 01:44:46 +00:00
parent f62f738c7e
commit 6b1d31e5bc
1 changed files with 4 additions and 6 deletions

View File

@ -143,7 +143,10 @@ evas_gl_common_context_free(Evas_GL_Context *gc)
gc->references--; gc->references--;
if (gc->references > 0) return; if (gc->references > 0) return;
/* while (gc->images)
{
evas_gl_common_image_free(gc->images->data);
}
while (gc->tex.whole) while (gc->tex.whole)
{ {
evas_gl_common_texture_free(gc->tex.whole->data); 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]); 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. // FIXME: free shader.rect.prog etc. etc.
free(gc->array.vertex); free(gc->array.vertex);