[PATCH] compositor-drm: Inspect result of gbm_create_device.
John Kåre Alsaker
john.kare.alsaker at gmail.com
Sat Mar 2 03:27:39 PST 2013
---
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
More information about the wayland-devel
mailing list