Tilemap: Reduce a few unnecessary blits

No need to replicate static autotiles if we're not animating
at all.
This commit is contained in:
Jonas Kulla 2014-07-13 14:05:56 +02:00
parent efb2fd2695
commit 97708d25b6
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ struct TilemapPrivate
FBO::bind(autotile->getGLTypes().fbo, FBO::Read);
if (blitW <= autotileW)
if (blitW <= autotileW && tiles.animated)
{
/* Static autotile */
for (int j = 0; j < 4; ++j)