From 8e9fab9f98ffe06452987e554168864c9e380c4f Mon Sep 17 00:00:00 2001 From: HifiExperiments Date: Sun, 17 Nov 2024 22:26:35 -0800 Subject: [PATCH] don't update jitter in mirror views --- libraries/gpu-gl-common/src/gpu/gl/GLBackend.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/gpu-gl-common/src/gpu/gl/GLBackend.cpp b/libraries/gpu-gl-common/src/gpu/gl/GLBackend.cpp index aea872d15d..931d6ad4e5 100644 --- a/libraries/gpu-gl-common/src/gpu/gl/GLBackend.cpp +++ b/libraries/gpu-gl-common/src/gpu/gl/GLBackend.cpp @@ -1004,8 +1004,6 @@ void GLBackend::updatePresentFrame(const Mat4& correction, bool primary) { _transform._presentFrame.correction = correction; _transform._presentFrame.correctionInverse = glm::inverse(correction); - _transform._projectionJitter._currentSampleIndex++; - // Update previous views of saved transforms for (auto& viewProjState : _transform._savedTransforms) { viewProjState._state._previousCorrectedView = viewProjState._state._correctedView; @@ -1013,6 +1011,7 @@ void GLBackend::updatePresentFrame(const Mat4& correction, bool primary) { } if (primary) { + _transform._projectionJitter._currentSampleIndex++; _transform._presentFrame.unflippedCorrection = _transform._presentFrame.correction; quat flippedRotation = glm::quat_cast(_transform._presentFrame.unflippedCorrection); flippedRotation.y *= -1.0f;