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.ol...@amd.com Marek On Fri, Jun 26, 2015 at 2:04 PM, Emil Velikov emil.l.veli...@gmail.com 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

[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 emil.l.veli...@gmail.com --- src/egl/drivers/dri2/platform_x11.c | 4 1