diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-10-02 17:51:05 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-10-11 13:35:16 -0700 |
commit | be0ac5b1472ec74048bc2900c6b933c8450bd177 (patch) | |
tree | 855d2cc1cf38984b181c5ed4cbbc72412c4001a3 /src/compositor-drm.c | |
parent | db044cb9a5afd063699307327f8d656fb6cd07ad (diff) | |
download | weston-be0ac5b1472ec74048bc2900c6b933c8450bd177.tar.gz weston-be0ac5b1472ec74048bc2900c6b933c8450bd177.tar.bz2 weston-be0ac5b1472ec74048bc2900c6b933c8450bd177.zip |
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 <alexandru.damian@intel.com>
Diffstat (limited to 'src/compositor-drm.c')
-rw-r--r-- | src/compositor-drm.c | 6 |
1 files 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; } |