mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Minor update.
This commit is contained in:
parent
8674909fab
commit
86f8c564a4
@ -158,10 +158,10 @@ void CCSkeleton::draw () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
textureAtlas = regionTextureAtlas;
|
textureAtlas = regionTextureAtlas;
|
||||||
if (textureAtlas->getCapacity() == textureAtlas->getTotalQuads() &&
|
int quadCount = textureAtlas->getTotalQuads();
|
||||||
!textureAtlas->resizeCapacity(textureAtlas->getCapacity() * 2)) return;
|
if (textureAtlas->getCapacity() == quadCount && !textureAtlas->resizeCapacity(textureAtlas->getCapacity() * 2)) return;
|
||||||
RegionAttachment_updateQuad(attachment, slot, &quad, premultipliedAlpha);
|
RegionAttachment_updateQuad(attachment, slot, &quad, premultipliedAlpha);
|
||||||
textureAtlas->updateQuad(&quad, textureAtlas->getTotalQuads());
|
textureAtlas->updateQuad(&quad, quadCount);
|
||||||
}
|
}
|
||||||
if (textureAtlas) {
|
if (textureAtlas) {
|
||||||
textureAtlas->drawQuads();
|
textureAtlas->drawQuads();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user