[osg-users] Calling setUseVertexAttributeAliasing(true) after a viewer is being "run" causes a crasch

Robert Osfield robert.osfield at gmail.com
Wed Apr 7 05:56:52 PDT 2021


Hi Andres,

You've posted to the mailman list, which I'm about to close, could you
subscribe/post to the osg-users googlegroup.  I'll answer the question
there.

Cheers,
Robert.

On Wed, 7 Apr 2021 at 13:33, Anders Backman <andersb at cs.umu.se> wrote:

> Hi all.
> Just noticed that it is not possible to toggle the
> setUseVertexAttributeAliasing after a viewer has been realized and
> frame/run has been called and any text is involved in the scene. The
> attached code is a modified osgViewer. If 's' (statistics) is shown after
> the call to  setUseVertexAttributeAliasing, I get a callstack, meaning it
> is not possible to toggle this feature while an application is being run.
> Is that intentional?
>
> I am running OSG 3.6.4 on Windows 10
>
> >
> osg160-osg.dll!osg::VertexArrayState::applyDisablingOfVertexAttributes(osg::State
> & state) Line 294 C++
>
> osg160-osg.dll!osg::Geometry::drawVertexArraysImplementation(osg::RenderInfo
> & renderInfo) Line 989 C++
>   osg160-osg.dll!osg::Geometry::drawImplementation(osg::RenderInfo &
> renderInfo) Line 899 C++
>   osg160-osg.dll!osg::Drawable::drawInner(osg::RenderInfo & renderInfo)
> Line 277 C++
>   osg160-osg.dll!osg::Drawable::draw(osg::RenderInfo & renderInfo) Line
> 619 C++
>   osg160-osgUtil.dll!osgUtil::RenderLeaf::render(osg::RenderInfo &
> renderInfo, osgUtil::RenderLeaf * previous) Line 84 C++
>
> osg160-osgUtil.dll!osgUtil::RenderBin::drawImplementation(osg::RenderInfo &
> renderInfo, osgUtil::RenderLeaf * & previous) Line 488 C++
>
> osg160-osgUtil.dll!osgUtil::RenderStage::drawImplementation(osg::RenderInfo
> & renderInfo, osgUtil::RenderLeaf * & previous) Line 1408 C++
>   osg160-osgUtil.dll!osgUtil::RenderBin::draw(osg::RenderInfo &
> renderInfo, osgUtil::RenderLeaf * & previous) Line 432 C++
>   osg160-osgUtil.dll!osgUtil::RenderStage::drawInner(osg::RenderInfo &
> renderInfo, osgUtil::RenderLeaf * & previous, bool & doCopyTexture) Line
> 934 C++
>
>
>
> --
> __________________________________________
> Anders Backman, HPC2N
> 90187 Umeå University, Sweden
> anders at cs.umu.se http://www.hpc2n.umu.se
> Cell: +46-70-392 64 67
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210407/7fa12e4d/attachment.html>


More information about the osg-users mailing list