From: Emil Velikov Date: Fri, 4 Aug 2017 23:25:51 +0000 (+0100) Subject: egl/x11: pass NULL instead of XCB_WINDOW_NONE as native_surface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=794df9acad9828f97aa27523e87eed2f3c808378;p=mesa.git egl/x11: pass NULL instead of XCB_WINDOW_NONE as native_surface Signed-off-by: Emil Velikov Reviewed-by: Matt Turner Reviewed-by: Tapani Pälli --- diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 12c7d42c8fe..062c8a4e198 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -371,7 +371,7 @@ dri2_x11_create_pbuffer_surface(_EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf, const EGLint *attrib_list) { return dri2_x11_create_surface(drv, disp, EGL_PBUFFER_BIT, conf, - XCB_WINDOW_NONE, attrib_list); + NULL, attrib_list); } static EGLBoolean diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c index b88374c1cbb..9c018168b1c 100644 --- a/src/egl/drivers/dri2/platform_x11_dri3.c +++ b/src/egl/drivers/dri2/platform_x11_dri3.c @@ -238,7 +238,7 @@ dri3_create_pbuffer_surface(_EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf, const EGLint *attrib_list) { return dri3_create_surface(drv, disp, EGL_PBUFFER_BIT, conf, - XCB_WINDOW_NONE, attrib_list); + NULL, attrib_list); } static EGLBoolean