[PATCH weston 1/7] client/nested: reuse weston-egl-ext.h declarations

Emil Velikov emil.l.velikov at gmail.com
Mon Jul 4 14:27:13 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Rather than introducing a local copy of the
EGL_WL_create_wayland_buffer_from_image (re)definition, just use the
local header.

This also gives us access to EGL_WL_bind_wayland_display which is also
used in the client, yet the C file is missing a fall-back definition.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 clients/nested.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/clients/nested.c b/clients/nested.c
index 72aab15..6c21aa4 100644
--- a/clients/nested.c
+++ b/clients/nested.c
@@ -50,15 +50,8 @@
 #include "shared/xalloc.h"
 #include "window.h"
 
-#ifndef EGL_WL_create_wayland_buffer_from_image
-#define EGL_WL_create_wayland_buffer_from_image 1
+#include "weston-egl-ext.h"
 
-#ifdef EGL_EGLEXT_PROTOTYPES
-EGLAPI struct wl_buffer * EGLAPIENTRY eglCreateWaylandBufferFromImageWL(EGLDisplay dpy, EGLImageKHR image);
-#endif
-typedef struct wl_buffer * (EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL) (EGLDisplay dpy, EGLImageKHR image);
-
-#endif
 
 static int option_blit;
 
-- 
2.8.2



More information about the wayland-devel mailing list