Fix OpenXR view matrix;

This commit is contained in:
bjorn 2020-10-12 16:39:56 -06:00 committed by Jakob Bornecrantz
parent df3b918f74
commit a139ed33e5
1 changed files with 1 additions and 1 deletions

View File

@ -803,7 +803,7 @@ static void openxr_renderTo(void (*callback)(void*), void* userdata) {
float viewMatrix[16];
XrView* view = &views[eye];
mat4_fromQuat(viewMatrix, &view->pose.orientation.x);
memcpy(viewMatrix, &view->pose.position.x, 3 * sizeof(float));
memcpy(viewMatrix + 12, &view->pose.position.x, 3 * sizeof(float));
mat4_invert(viewMatrix);
lovrGraphicsSetViewMatrix(eye, viewMatrix);