Adding color attachment to default frame buffer

Hello, I want to add a color_attachment1 to my default window framebuffer so that I can generate a copy of the rendered geometry into a texture for postprocessing purpouses.

The problem is that traying to add a color_attachment to the default framebuffer produces an opengl error.

Is it possible to do that?

You can’t render to the “default” framebuffer and a FBO colorbuffer at the same time …

The way it is suposed to be done is frist render to the colorbuffer and then blit the colorbuffer in the framebuffer.

That’s not good and lot of people have ask for feature like what you want to do.

Good to know, I also think that would be a nice feature…