Problem with glGetTexImage

I am calling glGetTexImage to get texture data of texture, and trying to draw it.
it shows following output, show the corrupted image 16 times,
So What could be the problem ?

glGetTexImage is not part of either OpenGL ES 1.x or 2.0 core specifications. Are you using an extension?

As already stated there is no glGetTexImage in OpenGL, but if the texture is in a renderable format (RGB or RGBA, not L, A, or LA) then you can bind it to an FBO and use glReadPixels.

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