[PATCH] compositor-drm: Inspect result of gbm_create_device.
Scott Moreau
oreaus at gmail.com
Sat Mar 16 09:50:07 PDT 2013
Hi John,
Thanks, committed to gh next.
- Scott
On Sat, Mar 2, 2013 at 4:27 AM, John Kåre Alsaker
<john.kare.alsaker at gmail.com> wrote:
> ---
> src/compositor-drm.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> index 3c44f7a..f60fce9 100644
> --- a/src/compositor-drm.c
> +++ b/src/compositor-drm.c
> @@ -1174,6 +1174,9 @@ init_egl(struct drm_compositor *ec)
> {
> ec->gbm = gbm_create_device(ec->drm.fd);
>
> + if (!ec->gbm)
> + return -1;
> +
> if (gl_renderer_create(&ec->base, ec->gbm, gl_renderer_opaque_attribs,
> NULL) < 0) {
> gbm_device_destroy(ec->gbm);
> --
> 1.8.1.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list