mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 01:49:54 +00:00
Fixed crash when taking screenshots -> crash during save game
This commit is contained in:
parent
2f118b325d
commit
fdea94d84e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue