handle refcounting of dyn img data to allow for get, get, set, set

pairs.



SVN revision: 65051
This commit is contained in:
Carsten Haitzler 2011-11-11 07:36:15 +00:00
parent e169f9e5b7
commit dcb34d789b
2 changed files with 4 additions and 0 deletions

View File

@ -360,6 +360,7 @@ struct _Evas_GL_Texture_Pool
unsigned int *data;
int w, h;
int stride;
int checked_out;
} dyn;
Eina_List *allocations;
Eina_Bool whole : 1;

View File

@ -647,12 +647,15 @@ evas_gl_texture_pool_empty(Evas_GL_Texture_Pool *pt)
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
if (pt->dyn.img)
{
if (im->tex->pt->dyn.checked_out > 0)
glsym_eglUnmapImageSEC(pt->gc->egldisp, pt->dyn.img);
secsym_eglDestroyImage(pt->gc->egldisp, pt->dyn.img);
pt->dyn.img = NULL;
pt->dyn.data = NULL;
pt->dyn.w = 0;
pt->dyn.h = 0;
pt->dyn.stride = 0;
pt->dyn.checked_out = 0;
}
#endif