opengltexturesfboblitmultisampling

Blit from multisample textures to non multisample


I've one MS FBO with 3 attached MS textures and nonMS FBO also with 3 attacheed nonMS textures. Is there a way how to blit that? If i blit FBO's entirely, MS FBO combines it in a one texture, and that's not working. How to make that separately? Thank you.


Solution

  • Framebuffer blitting can only read from a single color attachment (specified by glReadBuffer) at one time. It can blit to multiple output attachments (specified by glDrawBuffers), but that's just copying the same rectangle to multiple destinations.

    If you want to read from each image and write to the corresponding image, you need to use 3 separate blitting function calls.