is it possible to render in frame buffer object created with QT?
I'm trying to create a FBO using QOpenGLFrameBuffer object and I bind to the context. The QT openGL context is created using the native context created by OCCT.
now if I check the current bound frame buffer before and after a view_->redraw() , the value is not the same
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &drawFboId); if(!view_.IsNull()) view_->Redraw(); glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &drawFboId);
if I check the value of drawFboId before and after, the value is different ( before is different from zero, after is zero ).
The result of this behaviour is that the image obtained from the FBO is not correct ( a black rectangle ).
How can I use the FBO created with QT to render OCCT?