avoid for a new Transform for identity gpu::Batch::setTransformModel when rendering model part which are blend shapes AND fix a bug in GLBackend when the ModelTransform is NULL then let's use the ViewTransform only

This commit is contained in:
Sam Gateau 2014-11-12 01:03:53 -08:00
parent 6096a61ecc
commit f634b1c5cb

View file

@ -489,7 +489,7 @@ void GLBackend::updateTransform() {
_transform._lastMode = GL_MODELVIEW;
}
Transform::Mat4 modelView;
_transform._model->getMatrix(modelView);
_transform._view->getMatrix(modelView);
glLoadMatrixf(reinterpret_cast< const GLfloat* >(&modelView));
} else {
// glLoadIdentity();