mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05: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;
|
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
|
gboolean
|
||||||
meta_egl_choose_config (MetaEgl *egl,
|
meta_egl_choose_config (MetaEgl *egl,
|
||||||
EGLDisplay display,
|
EGLDisplay display,
|
||||||
|
@ -38,6 +38,10 @@ gboolean meta_egl_has_extensions (MetaEgl *egl,
|
|||||||
char *first_extension,
|
char *first_extension,
|
||||||
...);
|
...);
|
||||||
|
|
||||||
|
gboolean meta_egl_initialize (MetaEgl *egl,
|
||||||
|
EGLDisplay display,
|
||||||
|
GError **error);
|
||||||
|
|
||||||
gboolean meta_egl_choose_config (MetaEgl *egl,
|
gboolean meta_egl_choose_config (MetaEgl *egl,
|
||||||
EGLDisplay display,
|
EGLDisplay display,
|
||||||
const EGLint *attrib_list,
|
const EGLint *attrib_list,
|
||||||
|
Loading…
Reference in New Issue
Block a user