diff --git a/simgear/canvas/elements/CanvasImage.cxx b/simgear/canvas/elements/CanvasImage.cxx index 5b88807b..43afd8e6 100644 --- a/simgear/canvas/elements/CanvasImage.cxx +++ b/simgear/canvas/elements/CanvasImage.cxx @@ -118,8 +118,8 @@ namespace canvas _colors = new osg::Vec4Array(1); _colors->setDataVariance(osg::Object::DYNAMIC); - _geom->setColorBinding(osg::Geometry::BIND_OVERALL); _geom->setColorArray(_colors); + _geom->setColorBinding(osg::Geometry::BIND_OVERALL); _prim = new osg::DrawArrays(osg::PrimitiveSet::QUADS); _prim->set(osg::PrimitiveSet::QUADS, 0, 4);