diff options
author | Emil Velikov <[email protected]> | 2016-12-05 14:42:04 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-12-09 17:36:28 +0000 |
commit | 26541a1fcc1fbb1e4aa25e79225bbe43d50d600d (patch) | |
tree | 71b31223491d5468f42c197f6982086c8f7d585b /src | |
parent | bf384a2d85c38f03e5de2f40eddf9fe47592b555 (diff) |
egl: add and enable EGL_KHR_config_attribs
Extension is already implemented in the main code.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/main/eglapi.c | 6 | ||||
-rw-r--r-- | src/egl/main/egldisplay.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 1716ffa82a2..33d562042fd 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -485,6 +485,7 @@ _eglCreateExtensionsString(_EGLDisplay *dpy) _EGL_CHECK_EXTENSION(EXT_swap_buffers_with_damage); _EGL_CHECK_EXTENSION(KHR_cl_event2); + _EGL_CHECK_EXTENSION(KHR_config_attribs); _EGL_CHECK_EXTENSION(KHR_create_context); _EGL_CHECK_EXTENSION(KHR_fence_sync); _EGL_CHECK_EXTENSION(KHR_get_all_proc_addresses); @@ -597,6 +598,11 @@ eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) */ disp->Extensions.KHR_get_all_proc_addresses = EGL_TRUE; + /* Extensions is used to provide EGL 1.3 functionality for 1.2 aware + * programs. It is driver agnostic and handled in the main EGL code. + */ + disp->Extensions.KHR_config_attribs = EGL_TRUE; + _eglComputeVersion(disp); _eglCreateExtensionsString(disp); _eglCreateAPIsString(disp); diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index 4e0d717c832..6c1049d23c3 100644 --- a/src/egl/main/egldisplay.h +++ b/src/egl/main/egldisplay.h @@ -105,6 +105,7 @@ struct _egl_extensions EGLBoolean EXT_swap_buffers_with_damage; EGLBoolean KHR_cl_event2; + EGLBoolean KHR_config_attribs; EGLBoolean KHR_create_context; EGLBoolean KHR_fence_sync; EGLBoolean KHR_get_all_proc_addresses; |