forked from organicmaps/organicmaps
skipping null states from applying.
This commit is contained in:
parent
89a5bbd6f8
commit
dcc3bc8b93
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue