Re: [osg-users] Composite viewer and GlGetVersion crash

2008-11-18 Thread Vincent Bourdier
Okay, I found the problem : I just have to make and set a new graphic context on each new osgViewer::View Sorry for the inconvenience. I just allow myself to a last question : Now, When I have two windows/View, the focus is given with a simple mouse fly over (without clicking). This can really be

Re: [osg-users] Composite viewer and GlGetVersion crash

2008-11-18 Thread Vincent Bourdier
Hi Robert, What I don't understand is why I get this error one time and not the previous... the code is exactly the same. int addWindow(bool buildscene) > { > osg::ref_ptr view = new osgViewer::View; > > compViewer->addView( view.get() ); > view->setUpViewInWindow( 10, 200, 440, 3

Re: [osg-users] Composite viewer and GlGetVersion crash

2008-11-18 Thread Robert Osfield
Hi Vincent, You make no mention of where you call osg::getGLVersionNumber(), but given you're getting a crash I'd guess you are calling it from a thread that doesn't have a graphics context current. All OpenGL calls have to be called from a thread with a valid graphics context. There has been pl

[osg-users] Composite viewer and GlGetVersion crash

2008-11-18 Thread Vincent Bourdier
Hi all, Using composite viewer, I have a strange behavior : If, during the build of my scene, I make 1, 2... osgViewer::view in the same composite viewer, everything is godd and work well. But, if during the render loop (after 200 frame() ) I had one View, with the same code of the previous, I h