diff --git a/libraries/gpu/src/gpu/GLBackendTransform.cpp b/libraries/gpu/src/gpu/GLBackendTransform.cpp index 99db7b38e8..4a55155a86 100755 --- a/libraries/gpu/src/gpu/GLBackendTransform.cpp +++ b/libraries/gpu/src/gpu/GLBackendTransform.cpp @@ -97,7 +97,12 @@ void GLBackend::TransformStageState::preUpdate(size_t commandIndex, const Stereo if (_invalidModel) { _model.getMatrix(_object._model); - _model.getInverseMatrix(_object._modelInverse); + + // FIXME - we don't want to be using glm::inverse() here but it fixes the flickering issue we are + // 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); } if (_invalidView || _invalidProj || _invalidViewport) {