diff --git a/cocos/renderer/CCRenderer.cpp b/cocos/renderer/CCRenderer.cpp index 6479b54d08..3d91197989 100644 --- a/cocos/renderer/CCRenderer.cpp +++ b/cocos/renderer/CCRenderer.cpp @@ -595,8 +595,7 @@ void Renderer::fillQuads(const QuadCommand *cmd) for(ssize_t i=0; i< cmd->getQuadCount() * 4; ++i) { - V3F_C4B_T2F *q = &_quadVerts[i + _numberQuads * 4]; - Vec3 *vec1 = (Vec3*)&q->vertices; + Vec3 *vec1 = (Vec3*)&(_quadVerts[i + _numberQuads * 4].vertices); modelView.transformPoint(vec1); }