diff options
author | Emil Velikov <[email protected]> | 2017-08-27 11:20:32 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-29 13:43:04 +0100 |
commit | da100fe6970ac8ca34ced69c6c5dfe8a4f5bec90 (patch) | |
tree | c23875edfabbb1d39b39651ea8c7bcdcf2327b76 /src | |
parent | 6a1b683e74f744b55ac61a6446393b38f41be629 (diff) |
egl/wayland: set correct format with wl_dmabuf as wl_drm is missing
For most/all cases today, we have wl_drm available alongside wl_dmabuf.
Yet in the long run, we want to make sure the latter can operate without
any traces of the former.
Fixes: 02cc35937277 ("egl/wayland: Use linux-dmabuf interface for buffers")
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index c0a1c5870de..017a2eb98ca 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -145,7 +145,7 @@ dri2_wl_create_window_surface(_EGLDriver *drv, _EGLDisplay *disp, if (!_eglInitSurface(&dri2_surf->base, disp, EGL_WINDOW_BIT, conf, attrib_list)) goto cleanup_surf; - if (dri2_dpy->wl_drm) { + if (dri2_dpy->wl_dmabuf || dri2_dpy->wl_drm) { if (conf->RedSize == 5) dri2_surf->format = WL_DRM_FORMAT_RGB565; else if (conf->AlphaSize == 0) |