From c2010b3af025ea70aa8b7688cca56b0082567f34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= <krh@bitplanet.net>
Date: Tue, 17 Dec 2013 10:40:01 -0800
Subject: [PATCH] nested: Add EGL_WL_create_wayland_buffer_from_image compat
 defines

Make it possible to compile this example with EGL implementations without
this extension.
---
 clients/nested.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/clients/nested.c b/clients/nested.c
index 581e3186d..747677954 100644
--- a/clients/nested.c
+++ b/clients/nested.c
@@ -47,6 +47,16 @@
 
 #define MIN(x,y) (((x) < (y)) ? (x) : (y))
 
+#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
+
 static int option_blit;
 
 struct nested {
-- 
GitLab