Re: [osg-users] glew and graphics contexts

2007-10-19 Thread Wills Alan
It has thread-safe support for multiple contexts as of v1.2.0. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: 19 October 2007 09:11 To: OpenSceneGraph Users Subject: Re: [osg-users] glew and graphics contexts Hi Wills, On 10/19/07

Re: [osg-users] glew and graphics contexts

2007-10-19 Thread Robert Osfield
Hi Wills, On 10/19/07, Wills Alan [EMAIL PROTECTED] wrote: Thanks for the reply. To answer your question, glew is being used by a 3rd-party library which I can't modify and which I'm integrating with my OSG stuff so I have to accommmodate it. Does GLEW support multiple graphics contexts?

Re: [osg-users] glew and graphics contexts

2007-10-19 Thread Wills Alan
] On Behalf Of Robert Osfield Sent: 18 October 2007 19:14 To: OpenSceneGraph Users Subject: Re: [osg-users] glew and graphics contexts Hi Wills, Since osgViewer by default will multi-thread the main thread calling the realize() won't be the graphics thread so your glew call will fail. If you want to init

[osg-users] glew and graphics contexts

2007-10-18 Thread Wills Alan
If I have the following ... // ..create traits ... osg::GraphicsContext* gc = osg::GraphicsContext::createGraphicsContext(traits); gc-realize(); gc-makeCurrent(); GLenum err = glewInit(); if (err != GL_OK) // error msg. else // ok ... then all is well. But if I do ...

Re: [osg-users] glew and graphics contexts

2007-10-18 Thread Robert Osfield
Hi Wills, Since osgViewer by default will multi-thread the main thread calling the realize() won't be the graphics thread so your glew call will fail. If you want to init glew then do it in a realize operation - see osgshaderterrain for an example of this. I have to ask way are you trying to