mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[xna] Fixed another (not so apparent) bug in multi pass rending (item texture reference was cleared to null and added to free pool too early). See #1554.
This commit is contained in:
parent
cb59d8d78b
commit
c771fabf5d
@ -157,14 +157,17 @@ namespace Spine {
|
||||
|
||||
Array.Copy(item.vertices, 0, vertexArray, vertexCount, itemVertexCount);
|
||||
vertexCount += itemVertexCount;
|
||||
|
||||
item.texture = null;
|
||||
freeItems.Enqueue(item);
|
||||
}
|
||||
FlushVertexArray(device, vertexCount, triangleCount);
|
||||
}
|
||||
|
||||
public void AfterLastDrawPass () {
|
||||
int itemCount = items.Count;
|
||||
for (int i = 0; i < itemCount; i++) {
|
||||
var item = items[i];
|
||||
item.texture = null;
|
||||
freeItems.Enqueue(item);
|
||||
}
|
||||
items.Clear();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user