kindle rendering fix

This commit is contained in:
ExMix 2013-05-02 18:01:39 +03:00 committed by Alex Zolotarev
parent d28e73b0ad
commit 67d312358b

View file

@ -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)