From: Mathias Froehlich Date: Sun, 24 Feb 2013 12:03:06 +0000 (+0100) Subject: spt: Use vbos for geometry. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fafa70c6bcd66a0d21e8d318b54fc197dcd145e3;p=simgear.git spt: Use vbos for geometry. --- diff --git a/simgear/scene/tgdb/ReaderWriterSPT.cxx b/simgear/scene/tgdb/ReaderWriterSPT.cxx index 2b9f27c6..c0ca9745 100644 --- a/simgear/scene/tgdb/ReaderWriterSPT.cxx +++ b/simgear/scene/tgdb/ReaderWriterSPT.cxx @@ -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);