From 1625f61812f77fc2068b0fe13daa84e034eb7abb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 13 Aug 2011 19:09:58 +0000 Subject: [PATCH] From Paul Martz, "Recent changes to osgShadow on trunk were apparently not yet tested with ref_ptr implicit casting disabled. Attached is a fix. " --- src/osgShadow/ViewDependentShadowMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgShadow/ViewDependentShadowMap.cpp b/src/osgShadow/ViewDependentShadowMap.cpp index 6c4996545..d9d61fc25 100644 --- a/src/osgShadow/ViewDependentShadowMap.cpp +++ b/src/osgShadow/ViewDependentShadowMap.cpp @@ -576,7 +576,7 @@ void ViewDependentShadowMap::cull(osgUtil::CullVisitor& cv) // 4.4 compute main scene graph TexGen + uniform settings + setup state // - assignTexGenSettings(&cv, camera.get(), textureUnit, texgen); + assignTexGenSettings(&cv, camera.get(), textureUnit, texgen.get()); // mark the light as one that has active shadows and requires shaders @@ -636,7 +636,7 @@ bool ViewDependentShadowMap::selectActiveLights(osgUtil::CullVisitor* cv, ViewDe { OSG_INFO<<"Light num "<getLightNum()<setLightData(itr->second, light, modelViewMatrix); + ld->setLightData(itr->second.get(), light, modelViewMatrix); pll.push_back(ld); } else