mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
c/util: Fix subimage flipping
This commit is contained in:
parent
8422895b83
commit
6a007b2986
|
@ -125,8 +125,10 @@ set_post_transform_rect(const struct xrt_layer_data *data,
|
|||
struct xrt_normalized_rect rect = *src_norm_rect;
|
||||
|
||||
if (data->flip_y ^ invert_flip) {
|
||||
rect.h = -rect.h;
|
||||
rect.y = 1.0f + rect.y;
|
||||
float h = rect.h;
|
||||
|
||||
rect.h = -h;
|
||||
rect.y = rect.y + h;
|
||||
}
|
||||
|
||||
*out_norm_rect = rect;
|
||||
|
|
Loading…
Reference in a new issue