optimize rendering code

This commit is contained in:
Huabing.Xu 2014-12-29 18:45:55 +08:00
parent 7ab4e0de3a
commit 2348e5c247
1 changed files with 1 additions and 2 deletions

View File

@ -595,8 +595,7 @@ void Renderer::fillQuads(const QuadCommand *cmd)
for(ssize_t i=0; i< cmd->getQuadCount() * 4; ++i) for(ssize_t i=0; i< cmd->getQuadCount() * 4; ++i)
{ {
V3F_C4B_T2F *q = &_quadVerts[i + _numberQuads * 4]; Vec3 *vec1 = (Vec3*)&(_quadVerts[i + _numberQuads * 4].vertices);
Vec3 *vec1 = (Vec3*)&q->vertices;
modelView.transformPoint(vec1); modelView.transformPoint(vec1);
} }