compositor-drm: cast surface to EGLNativeWindowType
authorDawid Gajownik <gajownik@gmail.com>
Mon, 17 Aug 2015 21:46:43 +0000 (18:46 -0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 19 Aug 2015 13:19:01 +0000 (16:19 +0300)
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 <gajownik@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor-drm.c

index 26f0012..c647fcd 100644 (file)
@@ -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,