glx: Initialize share_xid in CreateContext
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 8 Dec 2011 23:03:19 +0000 (15:03 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2011 22:55:31 +0000 (14:55 -0800)
commita832aa5ba097253f53983e3f1186b71626d164ae
treed0b73b7795480fd965be26a186e0ec4af5a8f1d8
parentb1ffb3335f629ed43bde44cee789dc9cdb35c306
glx: Initialize share_xid in CreateContext

Previously the share_xid was only set in the glXImportContextEXT path,
and it was left set to None in all of the other create-context paths.

Fixes the piglit test glx-query-context-info-ext.

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