From: Thomas Geymayer Date: Wed, 26 Jun 2013 22:38:44 +0000 (+0200) Subject: Set binding after color array (required by OSG 3.1.8) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82dd1e4be99855a6d003b26e2c11618ca427217e;p=simgear.git Set binding after color array (required by OSG 3.1.8) --- 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);