mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-07 15:46:12 +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 {
|
} else {
|
||||||
r_viewport_data = (struct comp_viewport_data){
|
r_viewport_data = (struct comp_viewport_data){
|
||||||
.x = (uint32_t)(r_v->viewport.x_pixels * scale_y),
|
.x = (uint32_t)(r_v->viewport.x_pixels * scale_x),
|
||||||
.y = (uint32_t)(r_v->viewport.y_pixels * scale_x),
|
.y = (uint32_t)(r_v->viewport.y_pixels * scale_y),
|
||||||
.w = (uint32_t)(r_v->viewport.w_pixels * scale_y),
|
.w = (uint32_t)(r_v->viewport.w_pixels * scale_x),
|
||||||
.h = (uint32_t)(r_v->viewport.h_pixels * scale_x),
|
.h = (uint32_t)(r_v->viewport.h_pixels * scale_y),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue