[xna] Fixed multi pass rending (was not working, did nothing after first pass). Closes #1554.

This commit is contained in:
Harald Csaszar 2019-11-26 13:34:38 +01:00
parent 839f5c3b67
commit 56e950e3a7
2 changed files with 4 additions and 0 deletions

View File

@ -162,6 +162,9 @@ namespace Spine {
freeItems.Enqueue(item);
}
FlushVertexArray(device, vertexCount, triangleCount);
}
public void AfterLastDrawPass () {
items.Clear();
}

View File

@ -86,6 +86,7 @@ namespace Spine {
pass.Apply();
batcher.Draw(device);
}
batcher.AfterLastDrawPass();
}
public void Draw(Skeleton skeleton) {