]> git.mxchange.org Git - simgear.git/commitdiff
Remove reference to osgUtil::RegisterRenderBinProxy
authorTim Moore <timoore33@gmail.com>
Tue, 16 Mar 2010 14:42:54 +0000 (15:42 +0100)
committerTim Moore <timoore33@gmail.com>
Tue, 16 Mar 2010 14:42:54 +0000 (15:42 +0100)
This has gone away in recent OSG sources.

simgear/scene/model/SGClipGroup.cxx
simgear/scene/model/SGClipGroup.hxx

index 758a5b6a197de8166918c11499a38770324ecd71..6d2ab7f1920de92c138774f29120f23de8babad8 100644 (file)
@@ -70,8 +70,18 @@ public:
   osg::ref_ptr<osg::RefMatrix> mModelView;
 };
 
-osgUtil::RegisterRenderBinProxy
-SGClipGroup::clipBinProxy("ClipRenderBin", new SGClipGroup::ClipRenderBin);
+struct SGClipGroup::ClipBinRegistrar
+{
+    ClipBinRegistrar()
+    {
+        osgUtil::RenderBin
+            ::addRenderBinPrototype("ClipRenderBin",
+                                    new SGClipGroup::ClipRenderBin);
+    }
+    static ClipBinRegistrar registrar;
+};
+
+SGClipGroup::ClipBinRegistrar SGClipGroup::ClipBinRegistrar::registrar;
 
 class SGClipGroup::CullCallback : public osg::NodeCallback {
 public:
index eb0e0ddbb778815372a035f2f0062db570553f3a..9820ec1d11cb6a8d00e55219f55373172f0f995d 100644 (file)
@@ -49,10 +49,8 @@ public:
 protected:
   class CullCallback;
   class ClipRenderBin;
-
+  struct ClipBinRegistrar;
   std::vector<osg::ref_ptr<osg::ClipPlane> > mClipPlanes;
-
-  static osgUtil::RegisterRenderBinProxy clipBinProxy;
 };
 
 #endif