From: Ian Romanick Date: Thu, 8 Dec 2011 23:03:19 +0000 (-0800) Subject: glx: Initialize share_xid in CreateContext X-Git-Tag: mesa-8.0-rc1~523 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a832aa5ba097253f53983e3f1186b71626d164ae;p=platform%2Fupstream%2Fmesa.git 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 Reviewed-by: Adam Jackson Reviewed-by: Eric Anholt --- diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 4f99023..0c77817 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -344,6 +344,7 @@ CreateContext(Display *dpy, int generic_id, struct glx_config *config, UnlockDisplay(dpy); SyncHandle(); + gc->share_xid = shareList ? shareList->xid : None; gc->imported = GL_FALSE; gc->renderType = renderType;