PDA

View Full Version : texture invalid after remove opengl window



ale211734
03-21-2016, 10:02 AM
Hello,

I have a problem with multiple opengl that share the same context.
I use opengl qt widget.

I switch from one opengl view to multiple view (2 or 3).
I use the constructorQGLWidget(const QGLFormat & format, QWidget * parent = 0, const QGLWidget * shareWidget = 0, Qt::WindowFlags f = 0)

with shareWidget!=0.

I create some objects runtime and every object have three texture id -> GLunit Cod[3]

The same objects are rendering on multiple shared opengl widget.


I use a QSplitter to align the multiple view.
When I am in multiple view the rendering is correct but when I remove a qglwidget from it and came back on single view, one texture became black and if I check with glIsValidTexture that is not valid.

I don't understand why one of texture id is not more valid after I remove a QGLWidget from QSplitter.

I need help please.
Thanks in advance.