mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
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:
parent
6096a61ecc
commit
f634b1c5cb
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue