mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
egl: Add eglInitialize helper
https://bugzilla.gnome.org/show_bug.cgi?id=773629
This commit is contained in:
parent
cb6adc45d1
commit
78c121eb10
@ -184,6 +184,20 @@ meta_egl_has_extensions (MetaEgl *egl,
|
||||
return has_extensions;
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_egl_initialize (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
GError **error)
|
||||
{
|
||||
if (!eglInitialize (display, NULL, NULL))
|
||||
{
|
||||
set_egl_error (error);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_egl_choose_config (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
|
@ -38,6 +38,10 @@ gboolean meta_egl_has_extensions (MetaEgl *egl,
|
||||
char *first_extension,
|
||||
...);
|
||||
|
||||
gboolean meta_egl_initialize (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
GError **error);
|
||||
|
||||
gboolean meta_egl_choose_config (MetaEgl *egl,
|
||||
EGLDisplay display,
|
||||
const EGLint *attrib_list,
|
||||
|
Loading…
Reference in New Issue
Block a user