瀏覽代碼

Merge pull request #303 from Fraggle/patch-3

Fix to avoid excessive flushing of polygon batch.
Nathan Sweet 11 年之前
父節點
當前提交
757db3f6cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-starling/spine-starling/src/spine/starling/PolygonBatch.as

+ 1 - 1
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;
 		}