<div dir="ltr">Hi Antoine,<br><div class="gmail_extra"><br><div class="gmail_quote">On 23 August 2017 at 09:57, Antoine Rennuit <span dir="ltr"><<a href="mailto:antoinerennuit@hotmail.com" target="_blank">antoinerennuit@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I use a windowing system that already makes use of GL. I have the feeling that this windowing system breaks my OSG managed GL context.<br>
<br>
Is there a way I can save / reapply my OSG GL context before calling frame() (so as to make sure my rendering is not disturbed by my windowing system).<br></blockquote><div><br></div><div>Integrating things the way you are wanting to is not directly supported by the OSG, it's possible to do but awkward, you need to know more about the internals of the OSG/OpenGL and the 3rd party GL code to be able to do it.<br></div><div><br></div><div>OpenGL has a glPushAttrib/glPopAttrib feature that can be used to save and restore state.<br><br></div><div>The OSG also has various osg::State::haveApplied*() methods to telling the OSG state tracking system that a particular element of state has changed.<br><br></div><div>I don't personally have expertise on the Qt side so really can't help you with specifics, if others in the community have done what you are attempting then they will be the most effective at helping you.  The best I can do is provide some high level pointers about what is available on the OSG side.<br><br></div><div>Robert.<br></div><div> </div></div></div></div>