|
|
@ -30,7 +30,7 @@ |
|
|
|
PUBLIC int |
|
|
|
PUBLIC int |
|
|
|
epoxy_conservative_egl_version(void) |
|
|
|
epoxy_conservative_egl_version(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
EGLDisplay *dpy = eglGetCurrentDisplay(); |
|
|
|
EGLDisplay dpy = eglGetCurrentDisplay(); |
|
|
|
|
|
|
|
|
|
|
|
if (!dpy) |
|
|
|
if (!dpy) |
|
|
|
return 14; |
|
|
|
return 14; |
|
|
@ -39,7 +39,7 @@ epoxy_conservative_egl_version(void) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PUBLIC int |
|
|
|
PUBLIC int |
|
|
|
epoxy_egl_version(EGLDisplay *dpy) |
|
|
|
epoxy_egl_version(EGLDisplay dpy) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int major, minor; |
|
|
|
int major, minor; |
|
|
|
const char *version_string; |
|
|
|
const char *version_string; |
|
|
@ -54,7 +54,7 @@ epoxy_egl_version(EGLDisplay *dpy) |
|
|
|
bool |
|
|
|
bool |
|
|
|
epoxy_conservative_has_egl_extension(const char *ext) |
|
|
|
epoxy_conservative_has_egl_extension(const char *ext) |
|
|
|
{ |
|
|
|
{ |
|
|
|
EGLDisplay *dpy = eglGetCurrentDisplay(); |
|
|
|
EGLDisplay dpy = eglGetCurrentDisplay(); |
|
|
|
|
|
|
|
|
|
|
|
if (!dpy) |
|
|
|
if (!dpy) |
|
|
|
return true; |
|
|
|
return true; |
|
|
@ -63,7 +63,7 @@ epoxy_conservative_has_egl_extension(const char *ext) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PUBLIC bool |
|
|
|
PUBLIC bool |
|
|
|
epoxy_has_egl_extension(EGLDisplay *dpy, const char *ext) |
|
|
|
epoxy_has_egl_extension(EGLDisplay dpy, const char *ext) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return epoxy_extension_in_string(eglQueryString(dpy, EGL_EXTENSIONS), ext); |
|
|
|
return epoxy_extension_in_string(eglQueryString(dpy, EGL_EXTENSIONS), ext); |
|
|
|
} |
|
|
|
} |
|
|
|