Hi Guys,
RenderToBitamp (target bitmap is not square and not power of two): we are switching to the slower glReadPixel in the case GL_TEXTURE_RECTANGLE extension is not present but it is really necessary? FBO cares about NPOTS or not?
Below the code we use ONLY when *both* FBO and GL_TEXTURE_RECTANGLE are available.
Thanks,
Alberto
Code :glBindTexture(GL_TEXTURE_RECTANGLE_ARB, 0); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fb); DrawScene(...); glBindTexture(GL_TEXTURE_RECTANGLE_ARB, color_tex); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); glGetTexImage(GL_TEXTURE_RECTANGLE_ARB, 0, GL_BGR, GL_UNSIGNED_BYTE, bitmapData);



. In DX9/10, there's no texRECT, it's all tex2D. 