From 9f3559d5c041913dbcf8030a28155e8ef8466c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 19 Jun 2023 11:59:17 +0200 Subject: [PATCH] xwayland/glamor/gbm: Use EGL_NO_CONTEXT with EGL_NATIVE_PIXMAP_KHR This is required per https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_image_pixmap.txt . Mesa hasn't enforced it, but it will soon: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/454 Fixes: 2f113d68f6c1 ("xwayland: Add glamor and DRI3 support") --- hw/xwayland/xwayland-glamor-gbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index 4086e78ba..b177b77e0 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -237,7 +237,7 @@ xwl_glamor_gbm_create_pixmap_for_bo(ScreenPtr screen, struct gbm_bo *bo, #endif { xwl_pixmap->image = eglCreateImageKHR(xwl_screen->egl_display, - xwl_screen->egl_context, + EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, xwl_pixmap->bo, NULL); }