glx: Don't segfault if glXGetContextIDEXT is pased a NULL context
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Dec 2011 19:37:01 +0000 (11:37 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2011 22:55:30 +0000 (14:55 -0800)
commit3b9b42250ca9f0da6e979afc047d1c8524466076
tree2c0156c97035b09df6733acdf3d7692327cc9654
parent5a849e864ea2db3b705ba301089ee2ec1fe78aa1
glx: Don't segfault if glXGetContextIDEXT is pased a NULL context

Fixes the piglit test glx-get-context-id.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/glxcmds.c