libweston: Silence compiler warning
Silences: `warning: ‘fourcc’ may be used uninitialized [-Wmaybe-uninitialized]` Signed-off-by: Robert Mader <robert.mader@collabora.com>
This commit is contained in:
parent
ab42159bf3
commit
2a2eeb6a33
@ -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…
Reference in New Issue
Block a user