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
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue