This commit is contained in:
bjorn 2019-05-13 00:00:36 -07:00
parent 69260cfbb3
commit 566cd20984
1 changed files with 4 additions and 4 deletions

View File

@ -572,6 +572,10 @@ static void openvr_renderTo(void (*callback)(void*), void* userdata) {
lovrGpuDirtyTexture();
}
static Texture* openvr_getMirrorTexture(void) {
return lovrCanvasGetAttachments(state.canvas, NULL)[0].texture;
}
static void openvr_update(float dt) {
state.compositor->WaitGetPoses(&state.renderPose, 1, NULL, 0);
VRActiveActionSet_t activeActionSet = { .ulActionSet = state.actionSet };
@ -592,10 +596,6 @@ static void openvr_update(float dt) {
}
}
static Texture* openvr_getMirrorTexture(void) {
return lovrCanvasGetAttachments(state.canvas, NULL)[0].texture;
}
HeadsetInterface lovrHeadsetOpenVRDriver = {
.driverType = DRIVER_OPENVR,
.init = openvr_init,