[PATCH weston 03/10] nested: add missing egl extension declaration

rawoul at gmail.com rawoul at gmail.com
Mon Aug 25 11:56:45 PDT 2014


From: Arnaud Vrac <avrac at freebox.fr>

---
 src/weston-egl-ext.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/weston-egl-ext.h b/src/weston-egl-ext.h
index 8ddf97f..4888323 100644
--- a/src/weston-egl-ext.h
+++ b/src/weston-egl-ext.h
@@ -51,7 +51,15 @@ EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
+#endif
+
+#ifndef EGL_WL_create_wayland_buffer_from_image
+#define EGL_WL_create_wayland_buffer_from_image 1
 
+#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
 
 #ifndef EGL_TEXTURE_EXTERNAL_WL
-- 
1.9.1



More information about the wayland-devel mailing list