gl-renderer: use eglCreatePlatformWindowSurfaceEXT to get EGLSurfaces
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
diff --git a/src/compositor-x11.c b/src/compositor-x11.c
index a435daf..5654c50 100644
--- a/src/compositor-x11.c
+++ b/src/compositor-x11.c
@@ -904,8 +904,13 @@
return NULL;
}
} else {
+ /* eglCreatePlatformWindowSurfaceEXT takes a Window*
+ * but eglCreateWindowSurface takes a Window. */
+ Window xid = (Window) output->window;
+
ret = gl_renderer->output_create(&output->base,
(EGLNativeWindowType) output->window,
+ &xid,
gl_renderer->opaque_attribs,
NULL);
if (ret < 0)