|
|
@ -35,9 +35,7 @@ |
|
|
|
#include <EGL/eglext.h> |
|
|
|
#include <EGL/eglext.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef EGL_PLATFORM_WAYLAND_KHR |
|
|
|
#include "weston-egl-ext.h" |
|
|
|
#define EGL_PLATFORM_WAYLAND_KHR 0x31D8 |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
#ifdef __cplusplus |
|
|
|
extern "C" { |
|
|
|
extern "C" { |
|
|
@ -45,16 +43,6 @@ extern "C" { |
|
|
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_EGL |
|
|
|
#ifdef ENABLE_EGL |
|
|
|
|
|
|
|
|
|
|
|
#ifndef EGL_EXT_platform_base |
|
|
|
|
|
|
|
typedef EGLDisplay (*PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, |
|
|
|
|
|
|
|
void *native_display, |
|
|
|
|
|
|
|
const EGLint *attrib_list); |
|
|
|
|
|
|
|
typedef EGLSurface (*PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, |
|
|
|
|
|
|
|
EGLConfig config, |
|
|
|
|
|
|
|
void *native_window, |
|
|
|
|
|
|
|
const EGLint *attrib_list); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static bool |
|
|
|
static bool |
|
|
|
weston_check_egl_extension(const char *extensions, const char *extension) |
|
|
|
weston_check_egl_extension(const char *extensions, const char *extension) |
|
|
|
{ |
|
|
|
{ |
|
|
|