diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c index d3cfbac22..8201407ae 100644 --- a/src/xrt/compositor/util/comp_render_cs.c +++ b/src/xrt/compositor/util/comp_render_cs.c @@ -425,8 +425,8 @@ do_cs_distortion_for_layer(struct render_compute *crc, src_image_view = get_image_view(image, data->flags, array_index); if (data->flip_y) { + src_norm_rect.y += src_norm_rect.h; src_norm_rect.h = -src_norm_rect.h; - src_norm_rect.y = 1 + src_norm_rect.y; } // Fill in data. diff --git a/src/xrt/compositor/util/comp_render_gfx.c b/src/xrt/compositor/util/comp_render_gfx.c index abf7c9359..6d1acaa62 100644 --- a/src/xrt/compositor/util/comp_render_gfx.c +++ b/src/xrt/compositor/util/comp_render_gfx.c @@ -774,8 +774,8 @@ do_mesh_from_proj(struct render_gfx *rr, const VkImageView src_image_view = get_image_view(image, data->flags, array_index); if (data->flip_y) { + src_norm_rect.y += src_norm_rect.h; src_norm_rect.h = -src_norm_rect.h; - src_norm_rect.y = 1 + src_norm_rect.y; } gfx_mesh_add_view( //