From 670df7e443dbd9c5d68b17129b4371d7864cbcc8 Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Mon, 28 Sep 2015 17:36:42 -0700 Subject: [PATCH] fix coding standard issue and comment --- libraries/gpu/src/gpu/GLBackendTransform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/gpu/src/gpu/GLBackendTransform.cpp b/libraries/gpu/src/gpu/GLBackendTransform.cpp index b2408be172..4a55155a86 100755 --- a/libraries/gpu/src/gpu/GLBackendTransform.cpp +++ b/libraries/gpu/src/gpu/GLBackendTransform.cpp @@ -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) {