mirror of https://github.com/bjornbytes/lovr.git
Cleanup;
This commit is contained in:
parent
69260cfbb3
commit
566cd20984
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue