Skip to content

Commit 64b3498

Browse files
committed
Initialize the shadow map index in MWShadowTechnique::ShadowData
Found by Coverity
1 parent 3387ff5 commit 64b3498

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/sceneutil/mwshadowtechnique.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ void MWShadowTechnique::LightData::setLightData(osg::RefMatrix* lm, const osg::L
532532
//
533533
MWShadowTechnique::ShadowData::ShadowData(MWShadowTechnique::ViewDependentData* vdd):
534534
_viewDependentData(vdd),
535-
_textureUnit(0)
535+
_textureUnit(0),
536+
_sm_i(0)
536537
{
537538

538539
const ShadowSettings* settings = vdd->getViewDependentShadowMap()->getShadowedScene()->getShadowSettings();

0 commit comments

Comments
 (0)