[info-performer] Qt, Gl context, destrcution, initilization : how it works???

Date view Thread view Subject view Author view

From: Myriam Lajon (mlajon++at++oktal.fr)
Date: 02/09/2006 01:23:11


My application can manage multiple windows that I can create and destroy at
anytime.
The window is integrated in a QGLWidget from Qt4.
I initialize the GL context in the following manner :

void initializeGL ()
{
 pfPipeWindow * pipeWindow = MyWindow();
HGLRC ctx = wglGetCurrentContext();
 pfPWinGLCxt(pipeWindow,ctx);
 pfPWinName(pipeWindow, "");
 pfPWinType(pipeWindow,PFPWIN_TYPE_UNMANAGED);
 pfPWinWSDrawable(pipeWindow, pfGetCurWSConnection(), winId());
 pfOpenPWin(pipeWindow);
}
Nothing is done for the destruction.

The first connexion is well done, also the first destruction. The following
message
appears during the second pfFrame of my second created window :

"pfWindow::select() could not make current on window. Trying default."

I think the GlContext of my first window is still used. What can I do?

Thanks,
Myriam.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Feb 09 2006 - 01:23:21 PST