OpenGL ES clarifying question regarding FBOs -- sorry can't find this info anywhere else?

Posted by DevDevDev on Stack Overflow See other posts from Stack Overflow or by DevDevDev
Published on 2010-03-26T03:12:37Z Indexed on 2010/03/26 3:13 UTC
Read the original article Hit count: 395

If I instantiate an FBO without binding a rendering buffer or a texture to it, what happens when I draw to it, nothing?

Do I need to associate a rendering target (renderbuffer or texture) to have an FBO do anything? What I'm trying to do is precache some buffers and then merge them later, but that doesn't seem to work at all.

Ideally I'd like to do something like

glBindFramebufferOES(GL_FRAMEBUFFER_OES, fbo1);
// Draw some stuff to fbo1
glBindFramebufferOES(GL_FRAMEBUFFER_OES, fbo2);
// Draw some stuff to fbo2
// ...
// ...
// glRenderFbo(fbo1); -- Not a func
// Set blending, etc. etc.
// glRenderFbo(fbo2); -- Not a func

© Stack Overflow or respective owner

Related posts about opengl

Related posts about opengl-es