_print_tex_count();
- if (gc->shared->info.sec_tbm_surface)
- pt->dyn.target = GL_TEXTURE_EXTERNAL_OES;
- else
- pt->dyn.target = GL_TEXTURE_2D;
+ pt->dyn.target = GL_TEXTURE_2D;
glGenTextures(1, &(pt->texture));
glBindTexture(pt->dyn.target, pt->texture);
{
int w, h, stride;
Evas_GL_Image *glim = surface;
- RGBA_Image *dst = glim->im;
+ DATA32 *pixels;
+ int load_err;
- void *pixels = evas_cache_image_pixels(&dst->cache_entry);
+ glim = eng_image_data_get(data, glim, EINA_TRUE, &pixels, &load_err,NULL);
eng_image_stride_get(data, glim, &stride);
eng_image_size_get(data, glim, &w, &h);
memset(pixels, 0, stride * h);