[PATCH weston] toytoolkit: fix new EGL extensions fallback typedefs
Manuel Bachmann
manuel.bachmann at open.eurogiciel.org
Fri Mar 27 23:05:48 PDT 2015
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 *
--
1.8.3.1
More information about the wayland-devel
mailing list