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(
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