Is there a way to attach one texture to one FBO, another texture to a different FBO and then read a part of first FBO and blit onto the other FBO and as a result make a permanent alteration of the texture the blit was done to through writing to the FBO that texture was attached to? I’m a beginner, just registered today, searched for the solution, but with no luck.

Honestly, I don’t have a clue on what I’m doing and the usage example that comes with glBindFramebuffer is so straightforward, so it should work. The problem with example present in the specs for that function is already have created FBOs and its not giving a complete example of how to attach already created texture, when it should be attached.

What I’m doing is creating a texture and FBO in the class constructor and then attaching that texture to that FBO:

But it seems that its not possible, because you can only attach texture to a GL_FRAMEBUFFER_EXT and not to the FBO created with:

Engine::glGenFramebuffersEXT(1, &rFBO);

In the above example all the variables like Engine::glGenFramebuffersEXT are obtained and valid OpenGL pointers. The app compiles but it crashes during run-time on the glBlitFramebufferEXT call with error 1280.

Can you help? I’m probably close, just found out about GLinterceptor and its giving me all bunch of errors: