[PATCH weston] toytoolkit: fix new EGL extensions fallback typedefs
Pekka Paalanen
ppaalanen at gmail.com
Mon Mar 30 05:26:59 PDT 2015
On Sat, 28 Mar 2015 07:05:48 +0100
Manuel Bachmann <manuel.bachmann at open.eurogiciel.org> wrote:
> From: Manuel Bachmann <manuel.bachmann at open.eurogiciel.org>
>
> The dummy typedefs for "get_platform_display()" and
> "create_platform_window()" were badly defined, which
> prevented building Weston on older systems.
>
> Signed-off-by: Manuel Bachmann <manuel.bachmann at open.eurogiciel.org>
> ---
> shared/platform.h | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/shared/platform.h b/shared/platform.h
> index c099188..ff640b5 100644
> --- a/shared/platform.h
> +++ b/shared/platform.h
> @@ -41,8 +41,13 @@ extern "C" {
> #ifdef ENABLE_EGL
>
> #ifndef EGL_EXT_platform_base
> -typedef void (*PFNEGLGETPLATFORMDISPLAYEXTPROC) (void);
> -typedef void (*PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (void);
> +typedef EGLDisplay (*PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform,
> + void *native_display,
> + const EGLint *attrib_list);
> +typedef EGLSurface (*PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy,
> + EGLConfig config,
> + void *native_window,
> + const EGLint *attrib_list);
> #endif
>
> static inline void *
Pushed.
807f09c..e812859 master -> master
Thanks,
pq
More information about the wayland-devel
mailing list