Quellcode durchsuchen

Merge pull request #303 from Fraggle/patch-3

Fix to avoid excessive flushing of polygon batch.
Nathan Sweet vor 11 Jahren
Ursprung
Commit
757db3f6cb
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;
 		}