Can EGLImageTargetTexture2DOES specify mip level to target?


I’m a bit confused about the wording of OES_EGL_image spec :

The command

    void EGLImageTargetTexture2DOES(enum target, eglImageOES image);
defines an entire two-dimensional texture array... 
Any [b][i]existing image arrays associated with any mipmap levels[/i][/b] in the texture
object are freed (as if TexImage was called for each, with an image of
zero size). 

The context for this question is that I want to bring back the existing mipmap levels stored in a sibling EGLImage using the KHR_gl_texture_2D_image extension aside from the level specified in the <image> parameter of the function in question.

But as the spec says above, any existing bound mip levels are cleared???

Or is my understanding of the spec wrong? Is this even allowed at all?

glBindTexture(GL_TEXTURE_2D, textureId);
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, level0);
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, level1);
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, level2);

where level[n] are EGLImages containing the levels of the texture


This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.