egl: Add function: meta_egl_query_string

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3304>
This commit is contained in:
Daniel van Vugt 2023-10-03 17:38:47 +08:00 committed by Marge Bot
parent 9fee3a9ec1
commit 8c6aabb9ca
2 changed files with 12 additions and 0 deletions

View File

@ -260,6 +260,14 @@ meta_egl_has_extensions (MetaEgl *egl,
return has_extensions;
}
const char *
meta_egl_query_string (MetaEgl *egl,
EGLDisplay display,
EGLint name)
{
return eglQueryString (display, name);
}
gboolean
meta_egl_initialize (MetaEgl *egl,
EGLDisplay display,

View File

@ -47,6 +47,10 @@ gboolean meta_egl_has_extensions (MetaEgl *egl,
const char *first_extension,
...);
const char * meta_egl_query_string (MetaEgl *egl,
EGLDisplay display,
EGLint name);
gboolean meta_egl_initialize (MetaEgl *egl,
EGLDisplay display,
GError **error);