aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-04 13:42:07 +0100
committerIlia Bozhinov <ammen99@gmail.com>2020-12-07 11:40:45 +0100
commitbfb59fd4d7bea25a9b6d4d545fd78ea689a5a108 (patch)
treebaed4f6b42106d748afa95ddd4f486b876ec7570
parent037710b1d42864ff1e681580e738c82b005bcbfb (diff)
backend/headless: create a config-less EGL context
-rw-r--r--backend/headless/backend.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index e662d6fa..3995d1eb 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -165,22 +165,12 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display,
return NULL;
}
- static const EGLint config_attribs[] = {
- EGL_SURFACE_TYPE, 0,
- EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
- EGL_BLUE_SIZE, 1,
- EGL_GREEN_SIZE, 1,
- EGL_RED_SIZE, 1,
- EGL_NONE,
- };
-
if (!create_renderer_func) {
create_renderer_func = wlr_renderer_autocreate;
}
struct wlr_renderer *renderer = create_renderer_func(&backend->priv_egl,
- EGL_PLATFORM_SURFACELESS_MESA, EGL_DEFAULT_DISPLAY,
- (EGLint*)config_attribs, 0);
+ EGL_PLATFORM_SURFACELESS_MESA, EGL_DEFAULT_DISPLAY, NULL, 0);
if (!renderer) {
wlr_log(WLR_ERROR, "Failed to create renderer");
free(backend);