From ae76b5037dc16470e56934e8d6c508bb92e28d69 Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Tue, 1 Dec 2020 15:44:00 +0100 Subject: [PATCH] c/renderer: Fix right eye viewport when not pre-rotating. Scale X / Y were swapped incorrectly. --- src/xrt/compositor/main/comp_renderer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c index 4f7189358..c6681bb9d 100644 --- a/src/xrt/compositor/main/comp_renderer.c +++ b/src/xrt/compositor/main/comp_renderer.c @@ -266,10 +266,10 @@ renderer_build_rendering(struct comp_renderer *r, }; } else { r_viewport_data = (struct comp_viewport_data){ - .x = (uint32_t)(r_v->viewport.x_pixels * scale_y), - .y = (uint32_t)(r_v->viewport.y_pixels * scale_x), - .w = (uint32_t)(r_v->viewport.w_pixels * scale_y), - .h = (uint32_t)(r_v->viewport.h_pixels * scale_x), + .x = (uint32_t)(r_v->viewport.x_pixels * scale_x), + .y = (uint32_t)(r_v->viewport.y_pixels * scale_y), + .w = (uint32_t)(r_v->viewport.w_pixels * scale_x), + .h = (uint32_t)(r_v->viewport.h_pixels * scale_y), }; }