From 82dd1e4be99855a6d003b26e2c11618ca427217e Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 27 Jun 2013 00:38:44 +0200 Subject: [PATCH] Set binding after color array (required by OSG 3.1.8) --- simgear/canvas/elements/CanvasImage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5