Compile fix

This commit is contained in:
Lubos 2022-05-06 10:18:51 +02:00
parent ab1e853554
commit af80d5c284
3 changed files with 5 additions and 3 deletions

View file

@ -1418,7 +1418,7 @@ void IN_VRUpdateControllers( float predictedDisplayTime )
IN_VRController(qtrue, engine->appState.TrackedController[1].Pose);
}
void IN_VRUpdateHMD( float predictedDisplayTime )
XrPosef IN_VRUpdateHMD( float predictedDisplayTime )
{
engine_t* engine = VR_GetEngine();
@ -1450,6 +1450,8 @@ void IN_VRUpdateHMD( float predictedDisplayTime )
const float clientview_yaw = vr.clientviewangles[YAW] - vr.hmdorientation[YAW];
vr.clientview_yaw_delta = vr.clientview_yaw_last - clientview_yaw;
vr.clientview_yaw_last = clientview_yaw;
return xfStageFromHead;
}
//#endif

View file

@ -9,7 +9,7 @@
void IN_VRInputFrame( void );
void IN_VRInit( void );
void IN_VRSyncActions( void );
void IN_VRUpdateHMD( float predictedDisplayTime );
XrPosef IN_VRUpdateHMD( float predictedDisplayTime );
void IN_VRUpdateControllers( float predictedDisplayTime );
void QuatToYawPitchRoll(XrQuaternionf q, vec3_t rotation, vec3_t out);

View file

@ -385,7 +385,7 @@ void VR_DrawFrame( engine_t* engine ) {
OXR(xrBeginFrame(engine->appState.Session, &beginFrameDesc));
// Update HMD and controllers
IN_VRUpdateHMD( frameState.predictedDisplayTime );
XrPosef xfStageFromHead = IN_VRUpdateHMD( frameState.predictedDisplayTime );
IN_VRUpdateControllers( frameState.predictedDisplayTime );
IN_VRSyncActions();