compositor-drm: Inspect result of gbm_create_device.

John Kåre Alsaker 12 years ago committed by Kristian Høgsberg
parent ac1cb0b9d2
commit ef591aa4e9
  1. 3
      src/compositor-drm.c

@ -1175,6 +1175,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);

Loading…
Cancel
Save