From: Dawid Gajownik Date: Mon, 17 Aug 2015 21:46:43 +0000 (-0300) Subject: compositor-drm: cast surface to EGLNativeWindowType X-Git-Tag: 1.8.92~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b254506f5a939607df87e6477f4802d80dfa3de;p=platform%2Fupstream%2Fweston.git compositor-drm: cast surface to EGLNativeWindowType gl_renderer_output_create expects `window_for_legacy' variable to be of type EGLNativeWindowType, not EGLNativeDisplayType. This variable is used later in eglCreateWindowSurface(). Signed-off-by: Dawid Gajownik Reviewed-by: Pekka Paalanen --- diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 26f0012..c647fcd 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1828,7 +1828,7 @@ drm_output_init_egl(struct drm_output *output, struct drm_backend *b) if (format[1]) n_formats = 2; if (gl_renderer->output_create(&output->base, - (EGLNativeDisplayType)output->surface, + (EGLNativeWindowType)output->surface, output->surface, gl_renderer->opaque_attribs, format,