mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-18 16:36:45 +00:00
Remove redundant ShadowsBinAdder
This commit is contained in:
parent
fc32793cc6
commit
6cfabe252d
2 changed files with 1 additions and 8 deletions
|
@ -282,7 +282,7 @@ void VDSMCameraCullCallback::operator()(osg::Node* node, osg::NodeVisitor* nv)
|
||||||
static osg::ref_ptr<osg::StateSet> ss;
|
static osg::ref_ptr<osg::StateSet> ss;
|
||||||
if (!ss)
|
if (!ss)
|
||||||
{
|
{
|
||||||
ShadowsBinAdder adder("ShadowsBin", _vdsm->getCastingPrograms());
|
ShadowsBin::addPrototype("ShadowsBin", _vdsm->getCastingPrograms());
|
||||||
ss = new osg::StateSet;
|
ss = new osg::StateSet;
|
||||||
ss->setRenderBinDetails(osg::StateSet::OPAQUE_BIN, "ShadowsBin", osg::StateSet::OVERRIDE_PROTECTED_RENDERBIN_DETAILS);
|
ss->setRenderBinDetails(osg::StateSet::OPAQUE_BIN, "ShadowsBin", osg::StateSet::OVERRIDE_PROTECTED_RENDERBIN_DETAILS);
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,13 +67,6 @@ namespace SceneUtil
|
||||||
|
|
||||||
static void addPrototype(const std::string& name, const std::array<osg::ref_ptr<osg::Program>, GL_ALWAYS - GL_NEVER + 1>& castingPrograms);
|
static void addPrototype(const std::string& name, const std::array<osg::ref_ptr<osg::Program>, GL_ALWAYS - GL_NEVER + 1>& castingPrograms);
|
||||||
};
|
};
|
||||||
|
|
||||||
class ShadowsBinAdder
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
ShadowsBinAdder(const std::string& name, const std::array<osg::ref_ptr<osg::Program>, GL_ALWAYS - GL_NEVER + 1>& castingPrograms){ ShadowsBin::addPrototype(name, castingPrograms); }
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue