Hi Nicolas,

On 23 February 2015 at 09:35, Nicolas Baillard <[email protected]>
wrote:

> By "sharing of GL objects between contexts" I assume you mean the
> sharedContext member of the GraphicsContext::Traits structure correct ?
>


Yes, this is how one sets up shared contexts.  This means you'll need to
run SingleThreaded or drop the shared contexts.

The OSG doesn't mutex lock GL objects for a single context as the costs
would be prohibitive, and it's only required for shared contexts usage so
it's not a penalty that is worth paying.


>
> I do set this member for all my contexts. If I don't set it then my
> windows don't display the texture generated by my master camera, they
> display an uninitialized texture instead.
>

You don't provide any information about the set up of the Cameras and
render order so there isn't any way for others to be able to guess the
cause of this.

I would suggest fixing this problem, or just go with shared contexts and
SingleThreaded.

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

Reply via email to