fix coding standard issue and comment

This commit is contained in:
Brad Hefta-Gaub 2015-09-28 17:36:42 -07:00
parent 32b56a4bf7
commit 670df7e443

View file

@ -99,9 +99,10 @@ void GLBackend::TransformStageState::preUpdate(size_t commandIndex, const Stereo
_model.getMatrix(_object._model);
// FIXME - we don't want to be using glm::inverse() here but it fixes the flickering issue we are
// seeing with slightly physical objects.
// seeing with planky blocks in toybox. Our implementation of getInverseMatrix() is buggy in cases
// of non-uniform scale. We need to fix that. In the mean time, glm::inverse() works.
//_model.getInverseMatrix(_object._modelInverse);
_object._modelInverse =glm::inverse(_object._model);
_object._modelInverse = glm::inverse(_object._model);
}
if (_invalidView || _invalidProj || _invalidViewport) {