mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-27 10:18:17 +02:00
nested: Add EGL_WL_create_wayland_buffer_from_image compat defines
Make it possible to compile this example with EGL implementations without this extension.
This commit is contained in:
parent
fccb57d24d
commit
c2010b3af0
1 changed files with 10 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue