mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Pass correct frame index into Oculus SDK
This commit is contained in:
parent
2604b49650
commit
e77f2e8ac4
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ void OculusDisplayPlugin::internalPresent() {
|
|||
viewScaleDesc.HmdToEyeViewOffset[1] = _eyeOffsets[1];
|
||||
|
||||
ovrLayerHeader* layers = &_sceneLayer.Header;
|
||||
ovrResult result = ovr_SubmitFrame(_hmd, 0, &viewScaleDesc, &layers, 1);
|
||||
ovrResult result = ovr_SubmitFrame(_hmd, frameIndex, &viewScaleDesc, &layers, 1);
|
||||
if (!OVR_SUCCESS(result)) {
|
||||
qDebug() << result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue