diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 627f8a27c..25a3d4665 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -1379,7 +1379,6 @@ void Text::drawForegroundText(osg::State& state, const GlyphQuads& glyphquad, co { VertexArrayState* vas = state.getCurrentVertexArrayState(); bool usingVertexArrayObjects = usingVertexBufferObjects && state.useVertexArrayObject(_useVertexArrayObject); - bool requiresSetArrays = !usingVertexBufferObjects || !usingVertexArrayObjects || vas->getRequiresSetArrays(); if(_colorGradientMode == SOLID) { @@ -1388,6 +1387,7 @@ void Text::drawForegroundText(osg::State& state, const GlyphQuads& glyphquad, co } else { + bool requiresSetArrays = (_backdropType!=NONE) || !usingVertexBufferObjects || !usingVertexArrayObjects || vas->getRequiresSetArrays(); if (requiresSetArrays) { vas->setColorArray(state, colors.get());