libweston: Silence compiler warning

Silences:
`warning: ‘fourcc’ may be used uninitialized [-Wmaybe-uninitialized]`

Signed-off-by: Robert Mader <robert.mader@collabora.com>
dev
Robert Mader 3 years ago committed by Pekka Paalanen
parent ab42159bf3
commit 2a2eeb6a33
  1. 2
      libweston/renderer-gl/gl-renderer.c

@ -2208,6 +2208,8 @@ gl_renderer_fill_buffer_info(struct weston_compositor *ec,
case EGL_TEXTURE_Y_U_V_WL:
fourcc = DRM_FORMAT_YUV420;
break;
default:
assert(0 && "not reached");
}
buffer->pixel_format = pixel_format_get_info(fourcc);

Loading…
Cancel
Save