I want to call the rendering routine out without calling PaintGL, the reason is that I'm trying to render a multipass effect using the modern routines of Qt OpenGL implemementation so the pseudo code should be something like:
for i=0 i<npasses i++
glwidget->renderlayer i
glwidget->repaint //this calls PaintGL
The problem is that if I call renderlayer out of the PaintGL function everything goes mad and it gets drawn over my entire app instead on my glwidget (that inherits from QOpenGLWidget) in the other hand renderlayer funcion is ok since being called only from inside PaintGL it works like it was expected.
Any tip on this?
Thank you in advance