Hi Carsten, I think I solved the issue. I called reinitializeAllGLObjects() on my current window after activating the new context. The results look fine up to now. Does it sound resonable to you?
Thanks, Michael -------- Original-Nachricht -------- > Datum: Fri, 13 Jan 2012 09:02:10 -0600 > Von: Carsten Neumann <carsten_neum...@gmx.net> > An: opensg-users@lists.sourceforge.net > Betreff: Re: [Opensg-users] OpenSG1.8 - Changing OpenGL context > Hello Michael, > > On 01/13/2012 06:06 AM, Michael Raab wrote: > > I'm trying to change the pixel format of our application during runtime. > > To achieve this I need to recreate our drawing surface (device context) > and as an implication the opengl context. Up to this all went well. > > After that OpenSG leaves the frame buffer completely black. How is the > relation of OpenSG to the current GL context? What do I need to do to use a > new context? > > a GL context is represented as a Window in OpenSG. Depending on the type > of window you use they either create the context themselves or use an > existing one (PassiveWindow). > I'm guessing you'll have to create a new window to use the new context. > > Cheers, > Carsten > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Opensg-users mailing list > Opensg-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/opensg-users -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users