evas gl - did not free all atlas formats - fix

we have expanded atlas formats long since - so use #define to free
correct amount instead of 6
This commit is contained in:
Carsten Haitzler 2014-08-07 18:25:20 +09:00
parent 8b796edce7
commit f5cff9490e
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,7 @@ evas_gl_common_context_free(Evas_Engine_GL_Context *gc)
evas_gl_common_image_free(gc->shared->images->data); evas_gl_common_image_free(gc->shared->images->data);
} }
for (j = 0; j < 6; j++) for (j = 0; j < ATLAS_FORMATS_COUNT; j++)
{ {
EINA_LIST_FOREACH(gc->shared->tex.atlas[j], l, pt) EINA_LIST_FOREACH(gc->shared->tex.atlas[j], l, pt)
evas_gl_texture_pool_empty(pt); evas_gl_texture_pool_empty(pt);