From Paul Martz, "Recent changes to osgShadow on trunk were apparently not yet tested with ref_ptr implicit casting disabled. Attached is a fix. "

This commit is contained in:
Robert Osfield
2011-08-13 19:09:58 +00:00
parent b15317481c
commit 1625f61812

View File

@@ -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 "<<light->getLightNum()<<std::endl;
LightData* ld = new LightData(vdd);
ld->setLightData(itr->second, light, modelViewMatrix);
ld->setLightData(itr->second.get(), light, modelViewMatrix);
pll.push_back(ld);
}
else