Tilemap: Reduce a few unnecessary blits
No need to replicate static autotiles if we're not animating at all.
This commit is contained in:
parent
efb2fd2695
commit
97708d25b6
|
@ -571,7 +571,7 @@ struct TilemapPrivate
|
||||||
|
|
||||||
FBO::bind(autotile->getGLTypes().fbo, FBO::Read);
|
FBO::bind(autotile->getGLTypes().fbo, FBO::Read);
|
||||||
|
|
||||||
if (blitW <= autotileW)
|
if (blitW <= autotileW && tiles.animated)
|
||||||
{
|
{
|
||||||
/* Static autotile */
|
/* Static autotile */
|
||||||
for (int j = 0; j < 4; ++j)
|
for (int j = 0; j < 4; ++j)
|
||||||
|
|
Loading…
Reference in New Issue