Fixed Linux build failure because a temporary pointer was passed, ref #43

--HG--
branch : multipass-stereo
This commit is contained in:
Michael Witrant 2013-07-06 19:34:28 +02:00
parent c60bd3e3f5
commit fa4cbb00f7

View file

@ -1399,7 +1399,8 @@ bool mainLoop()
StereoDisplay->updateCamera(0, &MainCam);
if (SceneRoot)
{
StereoDisplay->updateCamera(1, &SceneRoot->getCam());
UCamera cam = SceneRoot->getCam();
StereoDisplay->updateCamera(1, &cam);
}
}
@ -1624,7 +1625,8 @@ bool mainLoop()
if (SceneRoot)
{
// matrix updated during commitCamera from maincam
StereoDisplay->getCurrentFrustum(1, &SceneRoot->getCam());
UCamera cam = SceneRoot->getCam();
StereoDisplay->getCurrentFrustum(1, &cam);
}
}