From: lefaucheux.jacques (lefaucheux.jacques++at++wanadoo.fr)
Date: 02/10/2006 09:15:45
Myriam,
Did you try to set
pfPWinGLCxt(pipeWindow,NULL); before your destruction.
As far I remember I find a similar problem by using pure OpenGL and GLX or
WGL programs.
Hope this help
Jacques
-----Message d'origine-----
De : owner-info-performer++at++performer.engr.sgi.com
[mailto:owner-info-performer++at++performer.engr.sgi.com] De la part de Myriam
Lajon
Envoyé : jeudi 9 février 2006 10:23
À : info-performer++at++sgi.com
Objet : [info-performer] Qt, Gl context, destrcution, initilization : how it
works???
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.
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Fri Feb 10 2006 - 09:15:55 PST