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
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?
] 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
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 ...
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
5 matches
Mail list logo