mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge pull request #303 from Fraggle/patch-3
Fix to avoid excessive flushing of polygon batch.
This commit is contained in:
commit
757db3f6cb
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user