Hi 

I have sometimes crashes on stats (osgText) with Windows:

Expression: vector iterator not dereferencable at


Code:

void Text::accept(osg::PrimitiveFunctor& pf) const
{
    pf.setVertexArray(_coords->size(), &(_coords->front()));
    for(TextureGlyphQuadMap::const_iterator titr=_textureGlyphQuadMap.begin();
        titr!=_textureGlyphQuadMap.end();
        ++titr)
    {
        const GlyphQuads& glyphquad = titr->second;
        if (!glyphquad._primitives.empty())
        {
>>>            pf.drawElements(GL_TRIANGLES, glyphquad._primitives[0]->size(), 
>>> &(glyphquad._primitives[0]->front()));
        }
    }
}




Code:

>>> reference front() { return _impl.front(); }




It means:


Code:

glyphquad._primitives[0]




Sorry, I have this on a large application. I can't reproduce it on a simpler 
setup.

Cheers,
Remo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70657#70657





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

Reply via email to