]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/TreeBin.hxx
Only disable display lists if using VBOs.
[simgear.git] / simgear / scene / tgdb / TreeBin.hxx
index 254c88128e3dda79cf5df005fcfd4753cde4ce7b..9b9c3bc91a2e5466bce318d7ed2026b655993a57 100644 (file)
@@ -29,7 +29,7 @@
 #include <osg/Group>
 #include <osg/Matrix>
 
-#include <simgear/math/SGMath.hxx>
+#include <simgear/scene/util/OsgMath.hxx>
 
 namespace simgear
 {
@@ -60,9 +60,12 @@ public:
     const Tree& getTree(unsigned i) const
     { return _trees[i]; }
     TreeList _trees;
+    
+    ~TreeBin() {
+      _trees.clear();
+    }    
 };
 
-
 typedef std::list<TreeBin*> SGTreeBinList;
 
 osg::Group* createForest(SGTreeBinList& forestList, const osg::Matrix& transform,