Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from zbendefy/master
Browse files Browse the repository at this point in the history
Avoid copying struct in render loop.
  • Loading branch information
polygraphene authored Jun 21, 2018
2 parents 4b1d846 + 362f040 commit 83597fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/cpp/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83597fd

Please sign in to comment.