Hi Glenn,
This is a new one for me :-)
My guess is that the a GLyphquad has been inserted in into the
Text::_textureGlyphQuadMap but it's primitives member hasn't had
filled in with anything.
Do you know if this happens with any of the standard osgtext examples?
Cheers,
Robert.
On Thu, 19 Jul 2018 at 21:47, Glenn Waldron wrote:
>
> Robert,
>
> While doing some performance testing on the nifty new osgText code, I found
> that for every text being drawn there are one or two extra glDrawElements
> calls with a count of zero. I was able to eliminate them by checking for an
> empty primitive set before this draw call:
>
> https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgText/Text.cpp#L1151
>
> It works, but I can't help wondering why the empty primitive sets exist in
> the first place. So I figured I'd see if you knew :) I am using the tip of
> the OSG 3.6.x branch.
>
> Glenn Waldron / osgEarth
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org