Hello John,

You can have a render context share lists with another context that has existing display lists. You just need to pass in the context with existing display lists as the first parameter to wglShareLists and the new context as the second parameter. OSG should get the sharing right automatically if you use OSG for the creation of your contexts. If you create the contexts yourself, it becomes your responsibility to set them up to share correctly.

Regards,

Mark


Argentieri, John-P63223 wrote:
Guys,
wglShareLists requires that the context which IS GOING TO SHARE has no display lists existing.
NOTE: See the italicized hglrc2 at this link:
http://msdn.microsoft.com/en-us/library/ms537565(VS.85).aspx <http://msdn.microsoft.com/en-us/library/ms537565%28VS.85%29.aspx> This creates a massive problem if we start with one window and wish to create more (sharing) later. I don't think this is an issue on other platforms. Does OSG watch for this, or do I have to code around the issue myself in my application? The examples which share contexts are great for learning, but they also neatly avoid this real-world problem by creating their windows at startup.

*John Argentieri*
*Software Engineer*
*GENERAL DYNAMICS*
*C4 Systems *
*[email protected]*

*"This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message.*"

------------------------------------------------------------------------

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

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

Reply via email to