Hi Robert,
To answer your question about how I manage the graphics contexts.
I just create a new one for the window handle provided by each instance of my 
browser plugin e.g

Code:
traits->inheritedWindowData = new WindowData(hWnd);
gc = osg::GraphicsContext::createGraphicsContext(traits);

 
Regards,
Chris Denham.


robertosfield wrote:
> Hi Chris,
> 
> Um... in this type of usage it may well be the easier to have multiple
> viewers.
> 
> When you are doing your browser plugin how to you manage the graphics 
> contexts?
> 
> I suspect the problem may well be down to the OpenGL object ID's for
> the texture objects being shared inappropriately in your application.
> The is designed to use a different osg::State::ContextID value for
> each context, if different contexts use the same value for ContextID
> then they will share the same OpenGL object ID's which will introduce
> errors like you've seen.  It's not the only way to create the errors,
> so it's only a hunch on my part.
> 
> Anyway I don't think there is anything particularly wrong with .ive
> plugin or the models, all they will be doing is providing us with
> hints as to what is wrong at a higher level.
> 
> Robert.
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44829#44829





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to