From 5c154fd236e3cd5dc1f7c276170a12013f0b16ec Mon Sep 17 00:00:00 2001 From: Sebastien Flory Date: Mon, 29 Sep 2014 16:51:34 +0200 Subject: [PATCH] Fix to avoid excessive flushing of polygon batch. It seems that when we use a starling SubTexture instead of an Spine texture, this line will trigger a lot of flushing instead of batching the polygons. This fix avoid that. Btw, you are using Animation.binarySearch1() in AnimationTimeline wich does not exists yet :-p --- .../spine-starling/src/spine/starling/PolygonBatch.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-starling/spine-starling/src/spine/starling/PolygonBatch.as b/spine-starling/spine-starling/src/spine/starling/PolygonBatch.as index 74553ab49..eba94728f 100644 --- a/spine-starling/spine-starling/src/spine/starling/PolygonBatch.as +++ b/spine-starling/spine-starling/src/spine/starling/PolygonBatch.as @@ -125,7 +125,7 @@ internal class PolygonBatch { _support.applyBlendMode(true); } - if (texture != _texture) { + if (!_texture || texture.base != _texture.base) { flush(); _texture = texture; }