mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -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;
|
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
|
gpointer
|
||||||
meta_egl_get_proc_address (MetaEgl *egl,
|
meta_egl_get_proc_address (MetaEgl *egl,
|
||||||
const char *procname,
|
const char *procname,
|
||||||
|
@ -54,6 +54,10 @@ gboolean meta_egl_initialize (MetaEgl *egl,
|
|||||||
EGLDisplay display,
|
EGLDisplay display,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
gboolean meta_egl_bind_api (MetaEgl *egl,
|
||||||
|
EGLenum api,
|
||||||
|
GError **error);
|
||||||
|
|
||||||
gpointer meta_egl_get_proc_address (MetaEgl *egl,
|
gpointer meta_egl_get_proc_address (MetaEgl *egl,
|
||||||
const char *procname,
|
const char *procname,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
Loading…
Reference in New Issue
Block a user