]> git.mxchange.org Git - simgear.git/commitdiff
spt: Use vbos for geometry.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 24 Feb 2013 12:03:06 +0000 (13:03 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Mon, 25 Feb 2013 05:42:40 +0000 (06:42 +0100)
simgear/scene/tgdb/ReaderWriterSPT.cxx

index 2b9f27c6db7360258bee9da8ab58f34ca55aa970..c0ca9745d9361ce5dd7fd039e9e1bbe000fb0e8e 100644 (file)
@@ -307,6 +307,8 @@ ReaderWriterSPT::createSeaLevelTile(const BucketBox& bucketBox, const osgDB::Opt
     colors->push_back(osg::Vec4(1, 1, 1, 1));
         
     osg::Geometry* geometry = new osg::Geometry;
+    geometry->setDataVariance(osg::Object::STATIC);
+    geometry->setUseVertexBufferObjects(true);
     geometry->setVertexArray(vertices);
     geometry->setNormalArray(normals);
     geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);