Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Copying inside of the QQuickFramebufferObject
ldmnyblzs last edited by
I'm using an OpenGL FBO through QQuickFramebufferObject for my custom rendering. I would like to copy parts of the FBO using OpenGL ES 2.0 only. The API doesn't let me do that directly, only through a temporary texture, especially because the source and the destination are sometimes overlapping. (Correct me if I'm wrong!)
What I'm planning on doing is using the shared context that I already have for different reasons to copy from the FBO to a temporary texture, then render it back to the FBO in QQuickFramebufferObject::Renderer::render().
My question is: is it safe to do anything with the FBO outside of the QQuickFramebufferObject::Renderer::render() function? I can make sure that my own code is not reading and writing the data at the same time, but I want to make sure that it doesn't interfere with Qt either.