From be0ac5b1472ec74048bc2900c6b933c8450bd177 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Wed, 2 Oct 2013 17:51:05 +0100 Subject: [PATCH] compositor-drm: fix EGL format type EGLInt is not always uint32_t so we need to make sure we use the right int size for the format. Signed-off-by: Alexandru DAMIAN --- src/compositor-drm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index ffdec89b..ad5a2c30 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1260,14 +1260,16 @@ init_drm(struct drm_compositor *ec, struct udev_device *device) static int init_egl(struct drm_compositor *ec) { + EGLint format; + ec->gbm = gbm_create_device(ec->drm.fd); if (!ec->gbm) return -1; + format = ec->format; if (gl_renderer_create(&ec->base, ec->gbm, - gl_renderer_opaque_attribs, - &ec->format) < 0) { + gl_renderer_opaque_attribs, &format) < 0) { gbm_device_destroy(ec->gbm); return -1; }