Hi,
in a program I was writing recently I was trying to write to both the back buffer and a fbo at the same time using mrt’s. I had something like this:
GLenum bufs[] = {GL_BACK , GL_COLOR_ATTACHMENT0_EXT };
glDrawbuffers(2,bufs);
fbo->Bind();
//draw stuff
however, when I bind the fbo, the back buffer is not rendered to and if I don’t bind the fbo then that buffer is not rendered to. This seems like it makes sense, but does anyone know of a way to do this other than 1) using two passes or 2) rendering to two color attachments and then combining them.
thanks.