forked from organicmaps/organicmaps
kindle rendering fix
This commit is contained in:
parent
d28e73b0ad
commit
67d312358b
1 changed files with 16 additions and 10 deletions
|
@ -282,14 +282,6 @@ void TileRenderer::DrawTile(core::CommandsQueue::Environment const & env,
|
|||
{
|
||||
if (glQueue)
|
||||
glQueue->completeCommands();
|
||||
|
||||
AddActiveTile(Tile(tileTarget,
|
||||
tileOverlay,
|
||||
frameScreen,
|
||||
rectInfo,
|
||||
0,
|
||||
paintEvent->isEmptyDrawing(),
|
||||
sequenceID));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -297,10 +289,24 @@ void TileRenderer::DrawTile(core::CommandsQueue::Environment const & env,
|
|||
{
|
||||
if (glQueue)
|
||||
glQueue->cancelCommands();
|
||||
|
||||
texturePool->Free(tileTarget);
|
||||
}
|
||||
}
|
||||
|
||||
if (env.isCancelled())
|
||||
{
|
||||
if (!m_isExiting)
|
||||
texturePool->Free(tileTarget);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddActiveTile(Tile(tileTarget,
|
||||
tileOverlay,
|
||||
frameScreen,
|
||||
rectInfo,
|
||||
0,
|
||||
paintEvent->isEmptyDrawing(),
|
||||
sequenceID));
|
||||
}
|
||||
}
|
||||
|
||||
void TileRenderer::AddCommand(Tiler::RectInfo const & rectInfo, int sequenceID, core::CommandsQueue::Chain const & afterTileFns)
|
||||
|
|
Loading…
Add table
Reference in a new issue