X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Fmodel%2FSGClipGroup.cxx;h=6d2ab7f1920de92c138774f29120f23de8babad8;hb=5a96b283f63cfacd3a3a90a82246defb038242d3;hp=758a5b6a197de8166918c11499a38770324ecd71;hpb=15c1a28d37b8bfb2dd7546c40fff73b0b9492e9d;p=simgear.git diff --git a/simgear/scene/model/SGClipGroup.cxx b/simgear/scene/model/SGClipGroup.cxx index 758a5b6a..6d2ab7f1 100644 --- a/simgear/scene/model/SGClipGroup.cxx +++ b/simgear/scene/model/SGClipGroup.cxx @@ -70,8 +70,18 @@ public: osg::ref_ptr 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: