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>
dev
Alexandru DAMIAN 11 years ago committed by Kristian Høgsberg
parent db044cb9a5
commit be0ac5b147
  1. 6
      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;
}

Loading…
Cancel
Save