Hi Ognjen Kostic (could you sign with your first name so I know how to appropriately address you :-)
Could you post the whole modified file as copying and pasting changes isn't a reliable enough method for merging changes, Thanks, Robert. On 24 February 2016 at 20:59, Ognjen Kostic <[email protected]> wrote: > Hello, > > Some android phones have no support for OES_element_index_uint extension > that is required if glDrawElements is to be called with GL_UNSIGNED_INT for > element type. > In OSG 3.4, osgText::Text( ::_quadIndices) uses DrawElementsUInt that will > fail on these devices and no text will appear - tested on Samsung Galaxy > Trend 2 SM-G313HN. > > When DrawElementsUInt is replaced with DrawElementsUShort it works, > although I'm not sure if this can cause other problems with some fonts. > > Fix: > - In include\osgText\Text, line 316: > replace: "osg::ref_ptr< osg::DrawElementsUInt > _quadIndices;" > with: "osg::ref_ptr< osg::DrawElementsUShort > _quadIndices;" > > - In src\osgText\Text.cpp, line 2094: > replace: "_quadIndices = new > DrawElementsUInt(PrimitiveSet::TRIANGLES);" > with: "_quadIndices = new > DrawElementsUShort(PrimitiveSet::TRIANGLES);" > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=66417#66417 > > > > > > _______________________________________________ > 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
