Added check to catch cases where the backdrop coordinate cache is too small for the number of contexts being computed.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14961 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
229477c35c
commit
b908ced20c
@ -811,6 +811,12 @@ void Text::computeBackdropPositions(unsigned int contextID) const
|
||||
}
|
||||
for( ; backdrop_index < max_backdrop_index; backdrop_index++)
|
||||
{
|
||||
if (contextID >= glyphquad._transformedBackdropCoords[backdrop_index].size())
|
||||
{
|
||||
// contextID exceeds one setup for glyphquad._transformedBackdropCoords, ignore this request.
|
||||
continue;
|
||||
}
|
||||
|
||||
GlyphQuads::Coords3& transformedCoords = glyphquad._transformedBackdropCoords[backdrop_index][contextID];
|
||||
unsigned int numCoords = coords2->size();
|
||||
if (numCoords!=transformedCoords->size())
|
||||
|
Loading…
Reference in New Issue
Block a user