mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[xna] Fixed multi pass rending (was not working, did nothing after first pass). Closes #1554.
This commit is contained in:
parent
839f5c3b67
commit
56e950e3a7
@ -162,6 +162,9 @@ namespace Spine {
|
|||||||
freeItems.Enqueue(item);
|
freeItems.Enqueue(item);
|
||||||
}
|
}
|
||||||
FlushVertexArray(device, vertexCount, triangleCount);
|
FlushVertexArray(device, vertexCount, triangleCount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AfterLastDrawPass () {
|
||||||
items.Clear();
|
items.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -86,6 +86,7 @@ namespace Spine {
|
|||||||
pass.Apply();
|
pass.Apply();
|
||||||
batcher.Draw(device);
|
batcher.Draw(device);
|
||||||
}
|
}
|
||||||
|
batcher.AfterLastDrawPass();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw(Skeleton skeleton) {
|
public void Draw(Skeleton skeleton) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user