mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-03 23:20:18 +01:00
gl-renderer: Explicitly zeroing the offset for 2^ plane of SHM_FOMRAT_YUYV
This fix a crash, when gl-renderer uploads the 2^ texture for YUYV. The pixels buffer was offset of a random value.
This commit is contained in:
parent
7d0170cf8a
commit
3ebbc6b5df
1 changed files with 1 additions and 0 deletions
|
|
@ -1629,6 +1629,7 @@ gl_renderer_attach_shm(struct weston_surface *es, struct weston_buffer *buffer,
|
|||
pitch = wl_shm_buffer_get_stride(shm_buffer) / 2;
|
||||
gl_pixel_type = GL_UNSIGNED_BYTE;
|
||||
num_planes = 2;
|
||||
gs->offset[1] = 0;
|
||||
gs->hsub[1] = 2;
|
||||
gs->vsub[1] = 1;
|
||||
if (gr->has_gl_texture_rg)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue