diff --git a/app/src/main/cpp/render.cpp b/app/src/main/cpp/render.cpp index 36c1847..cedea3e 100644 --- a/app/src/main/cpp/render.cpp +++ b/app/src/main/cpp/render.cpp @@ -1136,7 +1136,7 @@ ovrLayerProjection2 ovrRenderer_RenderFrame(ovrRenderer *renderer, const ovrJava unsigned long long *completionFence, bool loading, int enableTestMode, int AROverlayMode) { - ovrTracking2 updatedTracking = *tracking; + const ovrTracking2& updatedTracking = *tracking; ovrLayerProjection2 layer = vrapi_DefaultLayerProjection2(); layer.HeadPose = updatedTracking.HeadPose;