[Mesa-dev] [PATCH 4/4] egl/x11: handle when invalid drawable is passed in create_surface

2015-06-26 Thread Emil Velikov
0 is not used as a valid drawable id, as such there is no point in attempting to query it's geometry. Just bail out early and provide the more meaningful EGL_BAD_NATIVE_WINDOW to the user. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 4 1 file changed, 4 insertions(

Re: [Mesa-dev] [PATCH 4/4] egl/x11: handle when invalid drawable is passed in create_surface

2015-06-27 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Jun 26, 2015 at 2:04 PM, Emil Velikov wrote: > 0 is not used as a valid drawable id, as such there is no point in > attempting to query it's geometry. Just bail out early and provide the > more meaningful EGL_BAD_NATIVE_WINDOW to the user. > > Signed-off-b