Incorrect use of eglCreateImageKHR with <target> EGL_NATIVE_PIXMAP_KHR @xwayland
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_image_pixmap.txt
- If is EGL_NATIVE_PIXMAP_KHR, and is not EGL_NO_CONTEXT, the error EGL_BAD_PARAMETER is generated.
Code position:hw/xwayland/xwayland-glamor-gbm.c
xwl_pixmap->image = eglCreateImageKHR(xwl_screen->egl_display,
xwl_screen->egl_context,
EGL_NATIVE_PIXMAP_KHR,
xwl_pixmap->bo, NULL);
should be:
xwl_pixmap->image = eglCreateImageKHR(xwl_screen->egl_display,
EGL_NO_CONTEXT,
EGL_NATIVE_PIXMAP_KHR,
xwl_pixmap->bo, NULL);