skipping null states from applying.

This commit is contained in:
rachytski 2011-11-07 09:54:42 +04:00 committed by Alex Zolotarev
parent 89a5bbd6f8
commit dcc3bc8b93

View file

@ -56,8 +56,11 @@ void PartialRenderPolicy::DrawFrame(shared_ptr<PaintEvent> const & paintEvent,
if ((m_hasPacket) && (cmdProcessed < maxCmdPerFrame))
{
cmdProcessed++;
m_currentPacket.m_state->apply(curState.get());
curState = m_currentPacket.m_state;
if (m_currentPacket.m_state)
{
m_currentPacket.m_state->apply(curState.get());
curState = m_currentPacket.m_state;
}
m_currentPacket.m_command->perform();
}
else