[cocos2d-objc] Fixed two color tinting plus clipping.

This commit is contained in:
badlogic 2017-04-28 15:02:24 +02:00
parent 14d3d49ac4
commit 70e526d361

View File

@ -308,7 +308,7 @@ static bool handlerQueued = false;
spVertex* verts = &meshPart.mesh->vertices[meshPart.startVertex];
unsigned short* indices = &meshPart.mesh->indices[meshPart.startIndex];
for (int i = 0; i * 2 < verticesCount; i++, vertices++) {
for (int i = 0; i * 2 < verticesCount; i++, verts++) {
CCVertex vertex;
vertex.position = GLKVector4Make(vertices[i * 2], vertices[i * 2 + 1], 0.0, 1.0);
vertex = CCVertexApplyTransform(vertex, transform);