diff --git a/src/external/glad/include/glad/egl.h b/src/external/glad/include/glad/egl.h index e59969dc7..acb286174 100644 --- a/src/external/glad/include/glad/egl.h +++ b/src/external/glad/include/glad/egl.h @@ -1,9 +1,9 @@ /** - * Loader generated by glad 2.0.0-beta on Tue Aug 18 17:49:30 2020 + * Loader generated by glad 2.0.0-beta on Wed Aug 19 18:16:11 2020 * * Generator: C/C++ * Specification: egl - * Extensions: 11 + * Extensions: 12 * * APIs: * - egl=1.4 @@ -18,10 +18,10 @@ * - ON_DEMAND = False * * Commandline: - * --merge --api='egl=1.4' --extensions='EGL_ANDROID_get_native_client_buffer,EGL_ANDROID_image_native_buffer,EGL_EXT_image_dma_buf_import,EGL_EXT_image_dma_buf_import_modifiers,EGL_EXT_image_gl_colorspace,EGL_IMG_context_priority,EGL_KHR_create_context,EGL_KHR_gl_colorspace,EGL_KHR_image,EGL_KHR_image_base,EGL_KHR_platform_android' c + * --merge --api='egl=1.4' --extensions='EGL_ANDROID_front_buffer_auto_refresh,EGL_ANDROID_get_native_client_buffer,EGL_ANDROID_image_native_buffer,EGL_EXT_image_dma_buf_import,EGL_EXT_image_dma_buf_import_modifiers,EGL_EXT_image_gl_colorspace,EGL_IMG_context_priority,EGL_KHR_create_context,EGL_KHR_gl_colorspace,EGL_KHR_image,EGL_KHR_image_base,EGL_KHR_platform_android' c * * Online: - * http://glad.sh/#api=egl%3D1.4&extensions=EGL_ANDROID_get_native_client_buffer%2CEGL_ANDROID_image_native_buffer%2CEGL_EXT_image_dma_buf_import%2CEGL_EXT_image_dma_buf_import_modifiers%2CEGL_EXT_image_gl_colorspace%2CEGL_IMG_context_priority%2CEGL_KHR_create_context%2CEGL_KHR_gl_colorspace%2CEGL_KHR_image%2CEGL_KHR_image_base%2CEGL_KHR_platform_android&generator=c&options=MERGE + * http://glad.sh/#api=egl%3D1.4&extensions=EGL_ANDROID_front_buffer_auto_refresh%2CEGL_ANDROID_get_native_client_buffer%2CEGL_ANDROID_image_native_buffer%2CEGL_EXT_image_dma_buf_import%2CEGL_EXT_image_dma_buf_import_modifiers%2CEGL_EXT_image_gl_colorspace%2CEGL_IMG_context_priority%2CEGL_KHR_create_context%2CEGL_KHR_gl_colorspace%2CEGL_KHR_image%2CEGL_KHR_image_base%2CEGL_KHR_platform_android&generator=c&options=MERGE * */ @@ -231,6 +231,7 @@ typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apipro #define EGL_DRAW 0x3059 #define EGL_EXTENSIONS 0x3055 #define EGL_FALSE 0 +#define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C #define EGL_GL_COLORSPACE 0x309D #define EGL_GL_COLORSPACE_DEFAULT_EXT 0x314D #define EGL_GL_COLORSPACE_KHR 0x309D @@ -456,6 +457,8 @@ GLAD_API_CALL int GLAD_EGL_VERSION_1_2; GLAD_API_CALL int GLAD_EGL_VERSION_1_3; #define EGL_VERSION_1_4 1 GLAD_API_CALL int GLAD_EGL_VERSION_1_4; +#define EGL_ANDROID_front_buffer_auto_refresh 1 +GLAD_API_CALL int GLAD_EGL_ANDROID_front_buffer_auto_refresh; #define EGL_ANDROID_get_native_client_buffer 1 GLAD_API_CALL int GLAD_EGL_ANDROID_get_native_client_buffer; #define EGL_ANDROID_image_native_buffer 1 diff --git a/src/external/glad/include/glad/gl.h b/src/external/glad/include/glad/gl.h index b70dfd0f3..484911261 100644 --- a/src/external/glad/include/glad/gl.h +++ b/src/external/glad/include/glad/gl.h @@ -1,5 +1,5 @@ /** - * Loader generated by glad 2.0.0-beta on Tue Aug 18 17:49:30 2020 + * Loader generated by glad 2.0.0-beta on Wed Aug 19 18:16:10 2020 * * Generator: C/C++ * Specification: gl diff --git a/src/external/glad/src/egl.c b/src/external/glad/src/egl.c index 0d9f5804a..1746eb200 100644 --- a/src/external/glad/src/egl.c +++ b/src/external/glad/src/egl.c @@ -25,6 +25,7 @@ int GLAD_EGL_VERSION_1_1 = 0; int GLAD_EGL_VERSION_1_2 = 0; int GLAD_EGL_VERSION_1_3 = 0; int GLAD_EGL_VERSION_1_4 = 0; +int GLAD_EGL_ANDROID_front_buffer_auto_refresh = 0; int GLAD_EGL_ANDROID_get_native_client_buffer = 0; int GLAD_EGL_ANDROID_image_native_buffer = 0; int GLAD_EGL_EXT_image_dma_buf_import = 0; @@ -182,6 +183,7 @@ static int glad_egl_find_extensions_egl(EGLDisplay display) { const char *extensions; if (!glad_egl_get_extensions(display, &extensions)) return 0; + GLAD_EGL_ANDROID_front_buffer_auto_refresh = glad_egl_has_extension(extensions, "EGL_ANDROID_front_buffer_auto_refresh"); GLAD_EGL_ANDROID_get_native_client_buffer = glad_egl_has_extension(extensions, "EGL_ANDROID_get_native_client_buffer"); GLAD_EGL_ANDROID_image_native_buffer = glad_egl_has_extension(extensions, "EGL_ANDROID_image_native_buffer"); GLAD_EGL_EXT_image_dma_buf_import = glad_egl_has_extension(extensions, "EGL_EXT_image_dma_buf_import"); diff --git a/src/external/glad/url.txt b/src/external/glad/url.txt index becfab5bb..760827014 100644 --- a/src/external/glad/url.txt +++ b/src/external/glad/url.txt @@ -3,4 +3,4 @@ http://gen.glad.sh/#profile=gl%3Dcore%2Cgles1%3Dcommon&api=egl%3D1.4%2Cgl%3D4.5% Alternately, command line (for the glad2 branch!) -glad --merge --api='gl:core=4.5,gles2=3.2,egl=1.4' --extensions='GL_EXT_memory_object,GL_EXT_memory_object_fd,GL_EXT_memory_object_win32,GL_OES_EGL_image,GL_OES_EGL_image_external,GL_OES_EGL_image_external_essl3,EGL_ANDROID_get_native_client_buffer,EGL_ANDROID_image_native_buffer,EGL_EXT_image_dma_buf_import,EGL_EXT_image_dma_buf_import_modifiers,EGL_KHR_image,EGL_KHR_image_base,EGL_KHR_platform_android,EGL_IMG_context_priority,GL_EXT_external_buffer,EGL_KHR_create_context,EGL_EXT_image_gl_colorspace,EGL_KHR_gl_colorspace,GL_EXT_EGL_image_storage,GL_OES_depth_texture,GL_EXT_YUV_target,GL_EXT_sRGB,GL_OES_rgb8_rgba8,GL_OES_packed_depth_stencil' --out-path . c +glad --merge --api='gl:core=4.5,gles2=3.2,egl=1.4' --extensions='GL_EXT_memory_object,GL_EXT_memory_object_fd,GL_EXT_memory_object_win32,GL_OES_EGL_image,GL_OES_EGL_image_external,GL_OES_EGL_image_external_essl3,EGL_ANDROID_get_native_client_buffer,EGL_ANDROID_image_native_buffer,EGL_EXT_image_dma_buf_import,EGL_EXT_image_dma_buf_import_modifiers,EGL_KHR_image,EGL_KHR_image_base,EGL_KHR_platform_android,EGL_IMG_context_priority,GL_EXT_external_buffer,EGL_KHR_create_context,EGL_EXT_image_gl_colorspace,EGL_KHR_gl_colorspace,GL_EXT_EGL_image_storage,GL_OES_depth_texture,GL_EXT_YUV_target,GL_EXT_sRGB,GL_OES_rgb8_rgba8,GL_OES_packed_depth_stencil,EGL_ANDROID_front_buffer_auto_refresh' --out-path . c