From dfaba9f107360d512b3bd0dd9ed4c710812d0126 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 19 May 2022 23:04:02 +0100 Subject: [PATCH] gl-renderer: Use common value for maximum plane index Most everything else only supports 3 planes, and we don't support any four-plane YUV formats, so. Signed-off-by: Daniel Stone --- libweston/renderer-gl/gl-renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index f4b75e96..b0a49563 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -137,7 +137,7 @@ struct yuv_format_descriptor { uint32_t format; int output_planes; enum gl_shader_texture_variant shader_variant; - struct yuv_plane_descriptor plane[4]; + struct yuv_plane_descriptor plane[3]; }; struct gl_buffer_state {