gl-renderer: Fix plane count for legacy YUV420 images

It's three planes, not two.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 8b167a1703 ("gl-renderer: Store EGL buffer state in weston_buffer")
dev
Daniel Stone 3 years ago committed by Pekka Paalanen
parent f36d77a199
commit c3d84293b9
  1. 2
      libweston/renderer-gl/gl-renderer.c

@ -2180,7 +2180,7 @@ gl_renderer_fill_buffer_info(struct weston_compositor *ec,
break;
case EGL_TEXTURE_Y_U_V_WL:
fourcc = DRM_FORMAT_YUV420;
gb->num_images = 2;
gb->num_images = 3;
gb->shader_variant = SHADER_VARIANT_Y_U_V;
break;
default:

Loading…
Cancel
Save