From e28f84b7d8753e500475f16502ef484c77a16f8b Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 28 Apr 2011 21:29:59 +0200 Subject: [PATCH] compositor-openwfd: Use wfd_device_id as drm fd owfdrm uses non-0 (0 == WFD_INVALID_DEVICE_ID) fd's as wfd_device_ids. This is not standardized, but also not invalid. --- compositor/compositor-openwfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/compositor-openwfd.c b/compositor/compositor-openwfd.c index e8862a0..a0957dd 100644 --- a/compositor/compositor-openwfd.c +++ b/compositor/compositor-openwfd.c @@ -111,7 +111,7 @@ init_egl(struct wfd_compositor *ec) EGL_NONE }; - fd = wfdDeviceGetDRMfd(ec->dev); + fd = wfdGetDeviceAttribi(ec->dev, WFD_DEVICE_ID); if (fd < 0) return -1; -- 2.7.4