[osg-users] potential bug in osgUtil::RenderStage wrt. setting user defined FBO

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Fri Oct 25 15:25:27 PDT 2019


Hi Robert,

I have a case where I want to provide my own implementation of the FBO for
the RenderStage

via
 /** Set a framebuffer object to render into. It is permissible for the
          * framebuffer object to be multisampled, in which case you should
also
          * set a resolve framebuffer object - see
setMultisampleResolveFramebufferObject(). */
        void setFrameBufferObject(osg::FrameBufferObject* fbo) { _fbo =
fbo; }

However, my provided fbo gets overwritten in void
RenderStage::runCameraSetUp(osg::RenderInfo& renderInfo)

by a local fbo = new FrameBufferObject (ln: 357), so I am wondering how
this is intended to work with user defined FBO.

Can you share a word or two about this?

Thanks a lot!

Cheers,
Nick

-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20191026/1dd1a7eb/attachment.html>


More information about the osg-users mailing list