Use of EGL_IMAGE_PRESERVED_KHR in eglCreateImageKHR.

Hi,

I am trying to create a sample application where i am trying to use a EGLImage as texture. The EGLImage is created from a native pixmap using eglCreateImageKHR.

Most of the open source sample codes available over net  using eglCreateImageKHR has the last parameter(image attribute list) set to

NULL/EGL_IMAGE_PRESERVED_KHR is set to EGL_FALSE.

My query is what is the use of EGL_IMAGE_PRESERVED_KHR attribute and what is the difference b/w setting this attribute to EGL_FALSE and EGL_TRUE

and in which scenarios should i set this attribute to EGL_TRUE.

Thanks and Regards,

Prabal Kumar Ghosh