diff --git a/src/compositor-drm.c b/src/compositor-drm.c index c0d0c84b..8471a358 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1626,7 +1626,8 @@ drm_output_init_egl(struct drm_output *output, struct drm_compositor *ec) } if (gl_renderer->output_create(&output->base, - output->surface, output->surface, + (EGLNativeDisplayType)output->surface, + output->surface, gl_renderer->opaque_attribs, &format) < 0) { weston_log("failed to create gl renderer output state\n"); diff --git a/src/gl-renderer.h b/src/gl-renderer.h index d4da5671..9e4b2200 100644 --- a/src/gl-renderer.h +++ b/src/gl-renderer.h @@ -32,6 +32,7 @@ #else typedef int EGLint; +typedef int EGLenum; typedef void *EGLDisplay; typedef void *EGLSurface; typedef intptr_t EGLNativeDisplayType;