From a832aa5ba097253f53983e3f1186b71626d164ae Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 8 Dec 2011 15:03:19 -0800 Subject: [PATCH] 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 --- src/glx/glxcmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 4f99023172d..0c778178392 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; -- 2.30.2