mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 11:33:18 +00:00
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:
parent
4161948da9
commit
742f10f32c
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue