I have 2 problem with fbo;
I bound 4 textures to 1 fbo with
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + i, GL_TEXTURE_2D, m_fbo.tId[i], 0);
4 textures are diffrent size. 512 * 512, 256 * 256, 128 * 128 and 64 * 64
after I rendered secen,only the smallest size texture is correct, and all the others only update part of image(which equal to 64 * 64 at lower- left corner),is that means FBO MRT doesn’t support different target size?
I created 2 fbos, one use glRenderbufferStorageMultisample to get multisampling working,and after rendered secen, i use glBlitFramebufferEXT(0, 0,w1, h1, 0, 0, w2, h2, GL_COLOR_BUFFER_BIT, GL_NEAREST) to render fbo1 to fbo2’s texture;
if w1 == w2 && h1 == h2, witch means fbo2’s size same as fbo1’s render storage, it works ,otherwise i get a black image.
so my quesstion is : does it have to be same size when blit from a multisampled fbo to other texture binded fbo?
Thanks for your helps