Refactor wlr_egl_init to accept config_attribs

This commit is contained in:
emersion 2017-12-17 23:51:04 +01:00
parent bc5bdb7793
commit b99d1f4fcc
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 36 additions and 106 deletions

View file

@ -22,7 +22,8 @@ struct wlr_egl {
* Initializes an egl context for the given platform and remote display.
* Will attempt to load all possibly required api functions.
*/
bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, EGLint visual_id, void *display);
bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display,
EGLint *config_attribs, EGLint visual_id);
/**
* Frees all related egl resources, makes the context not-current and