1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:19:55 +00:00

Fixed crash when taking screenshots -> crash during save game

This commit is contained in:
Mads Buvik Sandvei 2020-10-24 22:42:34 +02:00
parent 2f118b325d
commit fdea94d84e

View file

@ -81,7 +81,7 @@ namespace MWVR
auto& frameMeta = session->getFrame(VRSession::FramePhase::Update);
// Only update tracking if rendering.
// OpenXR does not provide tracking information while not rendering.
if (frameMeta->mShouldRender)
if (frameMeta && frameMeta->mShouldRender)
{
auto currentHeadPose = frameMeta->mPredictedPoses.head;
currentHeadPose.position *= Environment::get().unitsPerMeter();