Merge pull request #303 from Fraggle/patch-3

Fix to avoid excessive flushing of polygon batch.
This commit is contained in:
Nathan Sweet 2014-09-30 01:21:50 +02:00
commit 757db3f6cb

View File

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