Skip to content

Commit 72ff6b1

Browse files
committed
Generate Sources of master updated at Wed Sep 11 00:01:25 GMT 2024
1 parent 9f4f3e6 commit 72ff6b1

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

include/GL/eglew.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,21 @@ typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint
974974

975975
#endif /* EGL_EXT_device_query_name */
976976

977+
/* ------------------------- EGL_EXT_display_alloc ------------------------- */
978+
979+
#ifndef EGL_EXT_display_alloc
980+
#define EGL_EXT_display_alloc 1
981+
982+
#define EGL_ALLOC_NEW_DISPLAY_EXT 0x3379
983+
984+
typedef EGLBoolean ( * PFNEGLDESTROYDISPLAYEXTPROC) (EGLDisplay dpy);
985+
986+
#define eglDestroyDisplayEXT EGLEW_GET_FUN(__eglewDestroyDisplayEXT)
987+
988+
#define EGLEW_EXT_display_alloc EGLEW_GET_VAR(__EGLEW_EXT_display_alloc)
989+
990+
#endif /* EGL_EXT_display_alloc */
991+
977992
/* ------------------------ EGL_EXT_explicit_device ------------------------ */
978993

979994
#ifndef EGL_EXT_explicit_device
@@ -2984,6 +2999,8 @@ EGLEW_FUN_EXPORT PFNEGLQUERYDEVICEATTRIBEXTPROC __eglewQueryDeviceAttribEXT;
29842999
EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESTRINGEXTPROC __eglewQueryDeviceStringEXT;
29853000
EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBEXTPROC __eglewQueryDisplayAttribEXT;
29863001

3002+
EGLEW_FUN_EXPORT PFNEGLDESTROYDISPLAYEXTPROC __eglewDestroyDisplayEXT;
3003+
29873004
EGLEW_FUN_EXPORT PFNEGLQUERYDMABUFFORMATSEXTPROC __eglewQueryDmaBufFormatsEXT;
29883005
EGLEW_FUN_EXPORT PFNEGLQUERYDMABUFMODIFIERSEXTPROC __eglewQueryDmaBufModifiersEXT;
29893006

@@ -3154,6 +3171,7 @@ EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_openwf;
31543171
EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_persistent_id;
31553172
EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_query;
31563173
EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_query_name;
3174+
EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_display_alloc;
31573175
EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_explicit_device;
31583176
EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_bt2020_hlg;
31593177
EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_bt2020_linear;

src/glew.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19753,6 +19753,8 @@ PFNEGLQUERYDEVICEATTRIBEXTPROC __eglewQueryDeviceAttribEXT = NULL;
1975319753
PFNEGLQUERYDEVICESTRINGEXTPROC __eglewQueryDeviceStringEXT = NULL;
1975419754
PFNEGLQUERYDISPLAYATTRIBEXTPROC __eglewQueryDisplayAttribEXT = NULL;
1975519755

19756+
PFNEGLDESTROYDISPLAYEXTPROC __eglewDestroyDisplayEXT = NULL;
19757+
1975619758
PFNEGLQUERYDMABUFFORMATSEXTPROC __eglewQueryDmaBufFormatsEXT = NULL;
1975719759
PFNEGLQUERYDMABUFMODIFIERSEXTPROC __eglewQueryDmaBufModifiersEXT = NULL;
1975819760

@@ -19923,6 +19925,7 @@ GLboolean __EGLEW_EXT_device_openwf = GL_FALSE;
1992319925
GLboolean __EGLEW_EXT_device_persistent_id = GL_FALSE;
1992419926
GLboolean __EGLEW_EXT_device_query = GL_FALSE;
1992519927
GLboolean __EGLEW_EXT_device_query_name = GL_FALSE;
19928+
GLboolean __EGLEW_EXT_display_alloc = GL_FALSE;
1992619929
GLboolean __EGLEW_EXT_explicit_device = GL_FALSE;
1992719930
GLboolean __EGLEW_EXT_gl_colorspace_bt2020_hlg = GL_FALSE;
1992819931
GLboolean __EGLEW_EXT_gl_colorspace_bt2020_linear = GL_FALSE;
@@ -20336,6 +20339,19 @@ static GLboolean _glewInit_EGL_EXT_device_query ()
2033620339

2033720340
#endif /* EGL_EXT_device_query */
2033820341

20342+
#ifdef EGL_EXT_display_alloc
20343+
20344+
static GLboolean _glewInit_EGL_EXT_display_alloc ()
20345+
{
20346+
GLboolean r = GL_FALSE;
20347+
20348+
r = ((eglDestroyDisplayEXT = (PFNEGLDESTROYDISPLAYEXTPROC)glewGetProcAddress((const GLubyte*)"eglDestroyDisplayEXT")) == NULL) || r;
20349+
20350+
return r;
20351+
}
20352+
20353+
#endif /* EGL_EXT_display_alloc */
20354+
2033920355
#ifdef EGL_EXT_image_dma_buf_import_modifiers
2034020356

2034120357
static GLboolean _glewInit_EGL_EXT_image_dma_buf_import_modifiers ()
@@ -21097,6 +21113,10 @@ GLenum eglewInit (EGLDisplay display)
2109721113
#ifdef EGL_EXT_device_query_name
2109821114
EGLEW_EXT_device_query_name = _glewSearchExtension("EGL_EXT_device_query_name", extStart, extEnd);
2109921115
#endif /* EGL_EXT_device_query_name */
21116+
#ifdef EGL_EXT_display_alloc
21117+
EGLEW_EXT_display_alloc = _glewSearchExtension("EGL_EXT_display_alloc", extStart, extEnd);
21118+
if (glewExperimental || EGLEW_EXT_display_alloc) EGLEW_EXT_display_alloc = !_glewInit_EGL_EXT_display_alloc();
21119+
#endif /* EGL_EXT_display_alloc */
2110021120
#ifdef EGL_EXT_explicit_device
2110121121
EGLEW_EXT_explicit_device = _glewSearchExtension("EGL_EXT_explicit_device", extStart, extEnd);
2110221122
#endif /* EGL_EXT_explicit_device */
@@ -31797,6 +31817,13 @@ GLboolean eglewIsSupported (const char* name)
3179731817
continue;
3179831818
}
3179931819
#endif
31820+
#ifdef EGL_EXT_display_alloc
31821+
if (_glewStrSame3(&pos, &len, (const GLubyte*)"display_alloc", 13))
31822+
{
31823+
ret = EGLEW_EXT_display_alloc;
31824+
continue;
31825+
}
31826+
#endif
3180031827
#ifdef EGL_EXT_explicit_device
3180131828
if (_glewStrSame3(&pos, &len, (const GLubyte*)"explicit_device", 15))
3180231829
{

src/glewinfo.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12358,6 +12358,17 @@ static void _glewInfo_EGL_EXT_device_query_name (void)
1235812358

1235912359
#endif /* EGL_EXT_device_query_name */
1236012360

12361+
#ifdef EGL_EXT_display_alloc
12362+
12363+
static void _glewInfo_EGL_EXT_display_alloc (void)
12364+
{
12365+
GLboolean fi = glewPrintExt("EGL_EXT_display_alloc", EGLEW_EXT_display_alloc, eglewIsSupported("EGL_EXT_display_alloc"), eglewGetExtension("EGL_EXT_display_alloc"));
12366+
12367+
glewInfoFunc(fi, "eglDestroyDisplayEXT", eglDestroyDisplayEXT == NULL);
12368+
}
12369+
12370+
#endif /* EGL_EXT_display_alloc */
12371+
1236112372
#ifdef EGL_EXT_explicit_device
1236212373

1236312374
static void _glewInfo_EGL_EXT_explicit_device (void)
@@ -18555,6 +18566,9 @@ static void eglewInfo ()
1855518566
#ifdef EGL_EXT_device_query_name
1855618567
_glewInfo_EGL_EXT_device_query_name();
1855718568
#endif /* EGL_EXT_device_query_name */
18569+
#ifdef EGL_EXT_display_alloc
18570+
_glewInfo_EGL_EXT_display_alloc();
18571+
#endif /* EGL_EXT_display_alloc */
1855818572
#ifdef EGL_EXT_explicit_device
1855918573
_glewInfo_EGL_EXT_explicit_device();
1856018574
#endif /* EGL_EXT_explicit_device */

0 commit comments

Comments
 (0)