mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
egl: Expose eglGetProcAddress
It will be needed for OpenGL ES extension function symbol loading. https://bugzilla.gnome.org/show_bug.cgi?id=785381
This commit is contained in:
parent
cbcf6a4f23
commit
e62cfd9043
@ -246,6 +246,25 @@ meta_egl_initialize (MetaEgl *egl,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gpointer
|
||||
meta_egl_get_proc_address (MetaEgl *egl,
|
||||
const char *procname,
|
||||
GError **error)
|
||||
{
|
||||
gpointer func;
|
||||
|
||||
func = (gpointer) eglGetProcAddress (procname);
|
||||
if (!func)
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
"Could not load symbol '%s': Not found",
|
||||
procname);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return func;
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_egl_choose_config (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
|
@ -52,6 +52,10 @@ gboolean meta_egl_initialize (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
GError **error);
|
||||
|
||||
gpointer meta_egl_get_proc_address (MetaEgl *egl,
|
||||
const char *procname,
|
||||
GError **error);
|
||||
|
||||
gboolean meta_egl_choose_config (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
const EGLint *attrib_list,
|
||||
|
Loading…
Reference in New Issue
Block a user