mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
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:
parent
9a1447b799
commit
5c154fd236
@ -125,7 +125,7 @@ internal class PolygonBatch {
|
||||
_support.applyBlendMode(true);
|
||||
}
|
||||
|
||||
if (texture != _texture) {
|
||||
if (!_texture || texture.base != _texture.base) {
|
||||
flush();
|
||||
_texture = texture;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user