[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 ... osgViewer

Re: [osg-users] glew and graphics contexts

2007-10-19 Thread Wills Alan
, 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 con

Re: [osg-users] glew and graphics contexts

2007-10-19 Thread Wills Alan
ou 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 use glew? The OSG manages extensions checking all itself and in a way that is thread safe and robust w.r.t multiple graphics contexts. Robert. On 10/18/07, Wil

[osg-users] OpenGL errors after applying attribute.

2007-11-28 Thread Wills Alan
Apologies if this is a bit vague, but there may be a simple answer. I am running a class which uses a CompositeViewer and a setup with 2 monitors. If I run my scene with one window on one screen (either 0 or 1, it doesn't matter which) it works fine. However, if I add a second view (so there i