diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-07 12:06:38 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-07 12:06:38 +0100 |
commit | 325cba6414b34359063b7aa2a9f60304da9afef5 (patch) | |
tree | 7edb2ba0efda7d4f66cb035597e1656c81a002ce /backend/drm | |
parent | bfb59fd4d7bea25a9b6d4d545fd78ea689a5a108 (diff) |
backend/drm: use EGL_PLATFORM_GBM_KHR
This is just the vendor-agnostic define for the GBM platform. It has the
same value as EGL_PLATFORM_GBM_MESA, so should work with old drivers
that only offer the Mesa-vendored extension too.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 7f6fe62d..8091f27b 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -42,8 +42,8 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, renderer->gbm_format = GBM_FORMAT_ARGB8888; renderer->wlr_rend = create_renderer_func(&renderer->egl, - EGL_PLATFORM_GBM_MESA, renderer->gbm, - config_attribs, renderer->gbm_format); + EGL_PLATFORM_GBM_KHR, renderer->gbm, config_attribs, + renderer->gbm_format); if (!renderer->wlr_rend) { wlr_log(WLR_ERROR, "Failed to create EGL/WLR renderer"); goto error_gbm; |