Mesa (master): egl/wayland: verify event queue was allocated
Lionel Landwerlin
llandwerlin at kemper.freedesktop.org
Mon May 22 14:45:26 UTC 2017
Module: Mesa
Branch: master
Commit: 30dc56bb5b313ae67c6e8648e23bb38c8e737488
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30dc56bb5b313ae67c6e8648e23bb38c8e737488
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Mon May 22 11:07:53 2017 +0100
egl/wayland: verify event queue was allocated
We're already verified that 'window' wasn't NULL, I'm guessing this
allocation error is about the newly created queue.
CID: 1409754
Fixes: 03dd9a88b0b ("egl/wayland: Use per-surface event queues")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Daniel Stone <daniels at collabora.com>
---
src/egl/drivers/dri2/platform_wayland.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 29f64f3a1e..9ad0635004 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -147,7 +147,7 @@ dri2_wl_create_window_surface(_EGLDriver *drv, _EGLDisplay *disp,
dri2_surf->wl_win = window;
dri2_surf->wl_queue = wl_display_create_queue(dri2_dpy->wl_dpy);
- if (!window) {
+ if (!dri2_surf->wl_queue) {
_eglError(EGL_BAD_ALLOC, "dri2_create_surface");
goto cleanup_surf;
}
More information about the mesa-commit
mailing list