gl-renderer: Use vsub for y offset in SHM

If we're doing partial uploads from SHM buffers, we need to use the
vertical subsampling factor rather than the horizontal for secondary
planes.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2022-04-28 14:34:43 +01:00 committed by Pekka Paalanen
parent 4161948da9
commit 742f10f32c

View file

@ -1824,7 +1824,7 @@ gl_renderer_flush_damage(struct weston_surface *surface,
glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT,
r.x1 / gb->hsub[j]);
glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT,
r.y1 / gb->hsub[j]);
r.y1 / gb->vsub[j]);
glTexSubImage2D(GL_TEXTURE_2D, 0,
r.x1 / gb->hsub[j],
r.y1 / gb->vsub[j],