mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
Pass EGL_NO_CONTEXT to eglCreateImageKHR for EGL_DRM_BUFFER_MESA target
This commit is contained in:
parent
f6b1471fd8
commit
175e6cec39
2 changed files with 3 additions and 2 deletions
|
|
@ -436,7 +436,8 @@ x11_compositor_create_output(struct x11_compositor *c, int width, int height)
|
||||||
attribs[3] = reply->height;
|
attribs[3] = reply->height;
|
||||||
attribs[5] = buffers[0].pitch / 4;
|
attribs[5] = buffers[0].pitch / 4;
|
||||||
output->image =
|
output->image =
|
||||||
eglCreateImageKHR(c->base.display, c->base.context,
|
eglCreateImageKHR(c->base.display,
|
||||||
|
EGL_NO_CONTEXT,
|
||||||
EGL_DRM_BUFFER_MESA,
|
EGL_DRM_BUFFER_MESA,
|
||||||
(EGLClientBuffer) buffers[0].name,
|
(EGLClientBuffer) buffers[0].name,
|
||||||
attribs);
|
attribs);
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ drm_create_buffer(struct wl_client *client, struct wl_drm *drm_base,
|
||||||
attribs[3] = height;
|
attribs[3] = height;
|
||||||
attribs[5] = stride / 4;
|
attribs[5] = stride / 4;
|
||||||
image = eglCreateImageKHR(compositor->display,
|
image = eglCreateImageKHR(compositor->display,
|
||||||
compositor->context,
|
EGL_NO_CONTEXT,
|
||||||
EGL_DRM_BUFFER_MESA,
|
EGL_DRM_BUFFER_MESA,
|
||||||
(EGLClientBuffer) name, attribs);
|
(EGLClientBuffer) name, attribs);
|
||||||
if (image == NULL) {
|
if (image == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue