Commit daf42372 authored by Robert Osfield's avatar Robert Osfield
Browse files

Fixed crash during compile traversal

parent f2f22df8
......@@ -349,7 +349,6 @@ void FadeText::init()
void FadeText::drawImplementation(osg::RenderInfo& renderInfo) const
{
osg::State& state = *renderInfo.getState();
ViewBlendColourMap::iterator itr = _viewBlendColourMap.find(renderInfo.getView());
......@@ -385,7 +384,7 @@ void FadeText::drawImplementation(osg::RenderInfo& renderInfo) const
renderInfo.setUserData(userData);
}
unsigned int frameNumber = renderInfo.getState()->getFrameStamp()->getFrameNumber();
unsigned int frameNumber = renderInfo.getState()->getFrameStamp() ? renderInfo.getState()->getFrameStamp()->getFrameNumber() : 0;
if (frameNumber != userData->_frameNumber)
{
// new frame so must reset UserData structure.
......
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