diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-09 11:46:08 +0100 |
---|---|---|
committer | Ilia Bozhinov <ammen99@gmail.com> | 2020-12-09 14:25:41 +0100 |
commit | 6ff478632a685c64f9977b83d8555b61700f12be (patch) | |
tree | 657f36cf48cd90bf171b891a5b0f5dd30edab726 /backend/drm | |
parent | 8a6930c138807cb04e2ef738cebe907877eaf292 (diff) |
backend/drm: remove EGL config
Since we're using wlr_swapchain, we don't need to provide an EGL config.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 2 | ||||
-rw-r--r-- | backend/drm/renderer.c | 14 |
2 files changed, 2 insertions, 14 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index cbc1ae47..f84f3afe 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -712,7 +712,7 @@ static bool drm_connector_init_renderer(struct wlr_drm_connector *conn, int width = mode->wlr_mode.width; int height = mode->wlr_mode.height; - uint32_t format = drm->renderer.gbm_format; + uint32_t format = DRM_FORMAT_ARGB8888; bool modifiers = true; const char *no_modifiers = getenv("WLR_DRM_NO_MODIFIERS"); diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index d8fef035..27cd50f1 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -30,20 +30,8 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, create_renderer_func = wlr_renderer_autocreate; } - static EGLint config_attribs[] = { - EGL_SURFACE_TYPE, EGL_WINDOW_BIT, - EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, - EGL_RED_SIZE, 1, - EGL_GREEN_SIZE, 1, - EGL_BLUE_SIZE, 1, - EGL_ALPHA_SIZE, 1, - EGL_NONE, - }; - - renderer->gbm_format = GBM_FORMAT_ARGB8888; renderer->wlr_rend = create_renderer_func(&renderer->egl, - EGL_PLATFORM_GBM_KHR, renderer->gbm, config_attribs, - renderer->gbm_format); + EGL_PLATFORM_GBM_KHR, renderer->gbm, NULL, 0); if (!renderer->wlr_rend) { wlr_log(WLR_ERROR, "Failed to create EGL/WLR renderer"); goto error_gbm; |