From a4b1a4ce29744cdcb814e84065d4482dabc23879 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 10 Mar 2017 17:06:04 +0000 Subject: [PATCH] Fixed handling of VAO's Text with backdrop and per vertex colours --- src/osgText/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());