From 97708d25b6c55b598020bbad464db22b0fad4718 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Sun, 13 Jul 2014 14:05:56 +0200 Subject: [PATCH] Tilemap: Reduce a few unnecessary blits No need to replicate static autotiles if we're not animating at all. --- src/tilemap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tilemap.cpp b/src/tilemap.cpp index 70d2df6..cc5e0a6 100644 --- a/src/tilemap.cpp +++ b/src/tilemap.cpp @@ -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)