mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
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.
This commit is contained in:
parent
bfb59fd4d7
commit
325cba6414
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ bool init_drm_renderer(struct wlr_drm_backend *drm,
|
||||||
|
|
||||||
renderer->gbm_format = GBM_FORMAT_ARGB8888;
|
renderer->gbm_format = GBM_FORMAT_ARGB8888;
|
||||||
renderer->wlr_rend = create_renderer_func(&renderer->egl,
|
renderer->wlr_rend = create_renderer_func(&renderer->egl,
|
||||||
EGL_PLATFORM_GBM_MESA, renderer->gbm,
|
EGL_PLATFORM_GBM_KHR, renderer->gbm, config_attribs,
|
||||||
config_attribs, renderer->gbm_format);
|
renderer->gbm_format);
|
||||||
if (!renderer->wlr_rend) {
|
if (!renderer->wlr_rend) {
|
||||||
wlr_log(WLR_ERROR, "Failed to create EGL/WLR renderer");
|
wlr_log(WLR_ERROR, "Failed to create EGL/WLR renderer");
|
||||||
goto error_gbm;
|
goto error_gbm;
|
||||||
|
|
Loading…
Reference in a new issue