diff --git a/include/GL/eglew.h b/include/GL/eglew.h index 7db93ab..b5c58cf 100644 --- a/include/GL/eglew.h +++ b/include/GL/eglew.h @@ -858,6 +858,17 @@ typedef EGLDisplay ( * PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, voi #endif /* EGL_EXT_platform_x11 */ +/* ----------------------- EGL_EXT_protected_content ----------------------- */ + +#ifndef EGL_EXT_protected_content +#define EGL_EXT_protected_content 1 + +#define EGL_PROTECTED_CONTENT_EXT 0x32C0 + +#define EGLEW_EXT_protected_content EGLEW_GET_VAR(__EGLEW_EXT_protected_content) + +#endif /* EGL_EXT_protected_content */ + /* ----------------------- EGL_EXT_protected_surface ----------------------- */ #ifndef EGL_EXT_protected_surface @@ -2103,6 +2114,7 @@ EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_base; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_device; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_wayland; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_x11; +EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_content; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_surface; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_stream_consumer_egloutput; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_swap_buffers_with_damage; diff --git a/src/glew.c b/src/glew.c index 8eae7c2..d77a1c6 100644 --- a/src/glew.c +++ b/src/glew.c @@ -14442,6 +14442,7 @@ GLboolean __EGLEW_EXT_platform_base = GL_FALSE; GLboolean __EGLEW_EXT_platform_device = GL_FALSE; GLboolean __EGLEW_EXT_platform_wayland = GL_FALSE; GLboolean __EGLEW_EXT_platform_x11 = GL_FALSE; +GLboolean __EGLEW_EXT_protected_content = GL_FALSE; GLboolean __EGLEW_EXT_protected_surface = GL_FALSE; GLboolean __EGLEW_EXT_stream_consumer_egloutput = GL_FALSE; GLboolean __EGLEW_EXT_swap_buffers_with_damage = GL_FALSE; @@ -15256,6 +15257,9 @@ GLenum eglewInit (EGLDisplay display) #ifdef EGL_EXT_platform_x11 EGLEW_EXT_platform_x11 = _glewSearchExtension("EGL_EXT_platform_x11", extStart, extEnd); #endif /* EGL_EXT_platform_x11 */ +#ifdef EGL_EXT_protected_content + EGLEW_EXT_protected_content = _glewSearchExtension("EGL_EXT_protected_content", extStart, extEnd); +#endif /* EGL_EXT_protected_content */ #ifdef EGL_EXT_protected_surface EGLEW_EXT_protected_surface = _glewSearchExtension("EGL_EXT_protected_surface", extStart, extEnd); #endif /* EGL_EXT_protected_surface */ @@ -23019,6 +23023,13 @@ GLboolean eglewIsSupported (const char* name) continue; } #endif +#ifdef EGL_EXT_protected_content + if (_glewStrSame3(&pos, &len, (const GLubyte*)"protected_content", 17)) + { + ret = EGLEW_EXT_protected_content; + continue; + } +#endif #ifdef EGL_EXT_protected_surface if (_glewStrSame3(&pos, &len, (const GLubyte*)"protected_surface", 17)) { diff --git a/src/glewinfo.c b/src/glewinfo.c index c93473d..e3d14a1 100644 --- a/src/glewinfo.c +++ b/src/glewinfo.c @@ -8479,6 +8479,15 @@ static void _glewInfo_EGL_EXT_platform_x11 (void) #endif /* EGL_EXT_platform_x11 */ +#ifdef EGL_EXT_protected_content + +static void _glewInfo_EGL_EXT_protected_content (void) +{ + glewPrintExt("EGL_EXT_protected_content", EGLEW_EXT_protected_content, eglewIsSupported("EGL_EXT_protected_content"), eglewGetExtension("EGL_EXT_protected_content")); +} + +#endif /* EGL_EXT_protected_content */ + #ifdef EGL_EXT_protected_surface static void _glewInfo_EGL_EXT_protected_surface (void) @@ -12844,6 +12853,9 @@ static void eglewInfo () #ifdef EGL_EXT_platform_x11 _glewInfo_EGL_EXT_platform_x11(); #endif /* EGL_EXT_platform_x11 */ +#ifdef EGL_EXT_protected_content + _glewInfo_EGL_EXT_protected_content(); +#endif /* EGL_EXT_protected_content */ #ifdef EGL_EXT_protected_surface _glewInfo_EGL_EXT_protected_surface(); #endif /* EGL_EXT_protected_surface */