mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
egl: Add eglBindAPI helper
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1828>
This commit is contained in:
parent
5e45dc15b6
commit
3c47661b78
@ -249,6 +249,20 @@ meta_egl_initialize (MetaEgl *egl,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_egl_bind_api (MetaEgl *egl,
|
||||
EGLenum api,
|
||||
GError **error)
|
||||
{
|
||||
if (!eglBindAPI (api))
|
||||
{
|
||||
set_egl_error (error);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gpointer
|
||||
meta_egl_get_proc_address (MetaEgl *egl,
|
||||
const char *procname,
|
||||
|
@ -54,6 +54,10 @@ gboolean meta_egl_initialize (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
GError **error);
|
||||
|
||||
gboolean meta_egl_bind_api (MetaEgl *egl,
|
||||
EGLenum api,
|
||||
GError **error);
|
||||
|
||||
gpointer meta_egl_get_proc_address (MetaEgl *egl,
|
||||
const char *procname,
|
||||
GError **error);
|
||||
|
Loading…
Reference in New Issue
Block a user