Merge pull request #348 from jdarpinian/oculus

Minor Oculus changes
This commit is contained in:
Branimir Karadžić 2015-04-17 12:00:44 -07:00
commit 62c3d18ff8
2 changed files with 9 additions and 1 deletions

View File

@ -117,6 +117,7 @@ namespace bgfx
| ovrDistortionCap_TimeWarp
| ovrDistortionCap_Overdrive
| ovrDistortionCap_NoRestore
| ovrDistortionCap_HqDistortion
, eyeFov
, m_erd
);
@ -174,6 +175,13 @@ ovrError:
m_texture[1].Header.RenderViewport = rect;
m_timing = ovrHmd_BeginFrame(m_hmd, 0);
#if OVR_VERSION > OVR_VERSION_042
m_pose[0] = ovrHmd_GetHmdPosePerEye(m_hmd, ovrEye_Left);
m_pose[1] = ovrHmd_GetHmdPosePerEye(m_hmd, ovrEye_Right);
#else
m_pose[0] = ovrHmd_GetEyePose(m_hmd, ovrEye_Left);
m_pose[1] = ovrHmd_GetEyePose(m_hmd, ovrEye_Right);
#endif // OVR_VERSION > OVR_VERSION_042
}
}

View File

@ -942,8 +942,8 @@ BX_PRAGMA_DIAGNOSTIC_POP();
DX_RELEASE(m_swapChain, 0);
DX_RELEASE(m_deviceCtx, 0);
DX_RELEASE(m_device, 0);
DX_RELEASE(m_factory, 0);
DX_RELEASE(m_device, 0);
unloadRenderDoc(m_renderdocdll);