glx: Generate GLXBadDrawable when drawable is zero
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 9 Aug 2013 01:17:24 +0000 (18:17 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 14 Aug 2013 00:53:33 +0000 (17:53 -0700)
commitd5aee174b88878e6d47dc1fadd3935f535fd85f0
treedf68fa0090ef6204eb7847633a44269e9d2ad740
parentef83bd2b9581c680439a5d22979c2f1b49b2834d
glx: Generate GLXBadDrawable when drawable is zero

Fixes piglit glx-query-drawable-GLXBadDrawable.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
src/glx/glx_pbuffer.c