diff --git a/include/osgShadow/MinimalDrawBoundsShadowMap b/include/osgShadow/MinimalDrawBoundsShadowMap index 2be16938d..fadbdeeb8 100644 --- a/include/osgShadow/MinimalDrawBoundsShadowMap +++ b/include/osgShadow/MinimalDrawBoundsShadowMap @@ -78,6 +78,8 @@ class OSGSHADOW_EXPORT MinimalDrawBoundsShadowMap ViewData( void ): _boundAnalysisSize( 64, 64 ) {} }; + friend struct ViewData; + META_ViewDependentShadowTechniqueData( ThisClass, ThisClass::ViewData ) diff --git a/include/osgShadow/StandardShadowMap b/include/osgShadow/StandardShadowMap index a8359260b..d451a7537 100644 --- a/include/osgShadow/StandardShadowMap +++ b/include/osgShadow/StandardShadowMap @@ -186,6 +186,8 @@ class OSGSHADOW_EXPORT StandardShadowMap : public DebugShadowMap const osg::Vec3 &worldLightUp = osg::Vec3(0,1,0) ); }; + + friend struct ViewData; META_ViewDependentShadowTechniqueData( ThisClass, ThisClass::ViewData ) };