Hi Aurelien, I think the right way to do this would be to do a state.haveAppliedAttriubte(fbo) in RenderStage.
Robert. On 20 July 2013 22:58, Aurelien Albert <[email protected]> wrote: > Hi, > > Currently, I work with a client low-level OpenGL code. To correctly > integrate in an OSG-based application, I need to re-apply some OpenGL > states after calling a client "draw" method. > > For most of concerned states, I use calls to "state::getLastAppliedMode" > and "state::getLastAppliedAttribute" to get the last value applied by OSG > and restore it. > > This doesn't work with FBOs because all applied FBO are not necessary > StateAttribute (in RenderStage for example). > > The attached code add a (basic) method to track the currently bound FBO id. > > > Thank you! > > Cheers, > Aurelien > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=55318#55318 > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
