use the states provided

This allows animations to be scaled/moved easily
This commit is contained in:
Victor Savu 2013-03-04 18:54:05 +02:00
parent 695db31d71
commit f77459983f

View File

@ -23,7 +23,8 @@ void Skeleton::draw (RenderTarget& target, RenderStates states) const {
const_cast<Skeleton*>(this)->vertexArray.clear();
for (int i = 0, n = slots.size(); i < n; i++)
if (slots[i]->attachment) slots[i]->attachment->draw(slots[i]);
target.draw(vertexArray, texture);
states.texture = texture;
target.draw(vertexArray, states);
}
} /* namespace spine */