diff --git a/shared/platform.h b/shared/platform.h index 30db1a6d..40d9bf2a 100644 --- a/shared/platform.h +++ b/shared/platform.h @@ -128,6 +128,13 @@ weston_platform_create_egl_surface(EGLDisplay dpy, EGLConfig config, attrib_list); } +static inline EGLBoolean +weston_platform_destroy_egl_surface(EGLDisplay display, + EGLSurface surface) +{ + return eglDestroySurface(display, surface); +} + #else /* ENABLE_EGL */ static inline void * @@ -144,6 +151,13 @@ weston_platform_create_egl_surface(void *dpy, void *config, { return NULL; } + +static inline unsigned int +weston_platform_destroy_egl_surface(void *display, + void *surface) +{ + return 1; +} #endif /* ENABLE_EGL */ #ifdef __cplusplus