mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
c/renderer: Fix right eye viewport when not pre-rotating.
Scale X / Y were swapped incorrectly.
This commit is contained in:
parent
6fc0e1cda5
commit
ae76b5037d
|
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue