]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/GroundLightManager.hxx
Only disable display lists if using VBOs.
[simgear.git] / simgear / scene / tgdb / GroundLightManager.hxx
index f9bfdf792343102c659ab4ca9021490b9873cb1d..2da72bc4f6242a7345411611fc5bfaf2f2d9fdeb 100644 (file)
 #include <osg/Vec4>
 #include <osg/Referenced>
 #include <osg/StateSet>
+
+
+#include <simgear/scene/util/OsgSingleton.hxx>
 #include <simgear/scene/util/SGUpdateVisitor.hxx>
 
 namespace simgear
 {
-class GroundLightManager : public osg::Referenced {
+class GroundLightManager : public ReferencedSingleton<GroundLightManager> {
 public:
     GroundLightManager();
     osg::StateSet* getRunwayLightStateSet() { return runwayLightSS.get(); }
@@ -36,7 +39,6 @@ public:
     // so use it.
     void update (const SGUpdateVisitor* updateVisitor);
     unsigned getLightNodeMask(const SGUpdateVisitor* updateVisitor);
-    static GroundLightManager* instance();
 protected:
     osg::ref_ptr<osg::StateSet> runwayLightSS;
     osg::ref_ptr<osg::StateSet> taxiLightSS;