Is there a way to read only a few texels from a texture ?

Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

Thanks

Originally posted by fuxifuxi:
[b]
Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

Thanks[/b]

There is no glGetTexSubImage. Render selected part of your texture with orthographic projection and read it back with glReadPixels.