Fix OpenXR view matrix;

This commit is contained in:
bjorn 2020-10-12 16:39:56 -06:00
parent 25d7319605
commit c6b4981389
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);