nested: Add EGL_WL_create_wayland_buffer_from_image compat defines
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 17 Dec 2013 18:40:01 +0000 (10:40 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 17 Dec 2013 18:40:01 +0000 (10:40 -0800)
Make it possible to compile this example with EGL implementations without
this extension.

clients/nested.c

index 581e318..7476779 100644 (file)
 
 #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 {