Bläddra i källkod

Merge pull request #303 from Fraggle/patch-3

Fix to avoid excessive flushing of polygon batch.
Nathan Sweet 11 år sedan
förälder
incheckning
757db3f6cb

+ 1 - 1
spine-starling/spine-starling/src/spine/starling/PolygonBatch.as

@@ -125,7 +125,7 @@ internal class PolygonBatch {
 			_support.applyBlendMode(true);
 			_support.applyBlendMode(true);
 		}
 		}
 
 
-		if (texture != _texture) {
+		if (!_texture || texture.base != _texture.base) {
 			flush();
 			flush();
 			_texture = texture;
 			_texture = texture;
 		}
 		}