FBO and TEXTURE_RECTANGLE_ARB

I don’t know how glGetTexImage and glReadPixels work internally, but I seeing their prototype I want to say that they do the same thing (I mean, for 2D texture) if you omit the thing that the 1st operate on a texture and the 2nd on the framebuffer.
So IMO none of them is faster than the other.

Any other opinion on this?

Thanks,

Alberto

Theoretically, glGetTexImage should be slower since some or on all GPUs, the texture is stored in a certain swizzled format for better cache performance. I imagine that render buffers are stored in a linear fashion and should yeild better performance with glReadPixels.

I imagine that render buffers are stored in a linear fashion and should yeild better performance with glReadPixels.

Of course, this is moot if you’re reading from a texture rather than a renderbuffer.

Thanks to you all guys !!!