1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 14:09:39 +00:00

Fix ODR violation for VDSMCameraCullCallback

This class is also defined in OpenSceneGraph at global namespace.
This commit is contained in:
elsid 2019-03-07 23:49:20 +03:00
parent c55141d18d
commit 47e87cc2bd
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -25,6 +25,8 @@
#include <sstream> #include <sstream>
namespace {
using namespace osgShadow; using namespace osgShadow;
using namespace SceneUtil; using namespace SceneUtil;
@ -331,6 +333,8 @@ void VDSMCameraCullCallback::operator()(osg::Node* node, osg::NodeVisitor* nv)
_projectionMatrix = cv->getProjectionMatrix(); _projectionMatrix = cv->getProjectionMatrix();
} }
} // namespace
MWShadowTechnique::ComputeLightSpaceBounds::ComputeLightSpaceBounds(osg::Viewport* viewport, const osg::Matrixd& projectionMatrix, osg::Matrixd& viewMatrix) : MWShadowTechnique::ComputeLightSpaceBounds::ComputeLightSpaceBounds(osg::Viewport* viewport, const osg::Matrixd& projectionMatrix, osg::Matrixd& viewMatrix) :
osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN) osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN)
{ {