]> git.mxchange.org Git - simgear.git/commitdiff
Set binding after color array (required by OSG 3.1.8)
authorThomas Geymayer <tomgey@gmail.com>
Wed, 26 Jun 2013 22:38:44 +0000 (00:38 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Wed, 26 Jun 2013 22:38:44 +0000 (00:38 +0200)
simgear/canvas/elements/CanvasImage.cxx

index 5b88807b5f9323319c59c67e19453c874ab93881..43afd8e680411afef87494499fc6e5125e93da6e 100644 (file)
@@ -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);