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
This commit is contained in:
Sebastien Flory 2014-09-29 16:51:34 +02:00
parent 9a1447b799
commit 5c154fd236

View File

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