Commit 46da11e5 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX] light shader for roi box was not aplied directly

parent f31da634
......@@ -209,6 +209,8 @@ WROIBox::WROIBox( WPosition minPos, WPosition maxPos ) :
setUserData( this );
setUpdateCallback( osg::ref_ptr<ROIBoxNodeCallback>( new ROIBoxNodeCallback ) );
m_lightShader->apply( this );
setDirty();
}
......@@ -368,8 +370,6 @@ void WROIBox::updateGFX()
setVertices( vertices, m_minPos->get(), m_maxPos->get() );
m_surfaceGeometry->setVertexArray( vertices );
m_lightShader->apply( this );
setDirty();
m_needVertexUpdate = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment