aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-12-08 15:03:19 -0800
committerIan Romanick <[email protected]>2011-12-19 14:55:31 -0800
commita832aa5ba097253f53983e3f1186b71626d164ae (patch)
treed0b73b7795480fd965be26a186e0ec4af5a8f1d8
parentb1ffb3335f629ed43bde44cee789dc9cdb35c306 (diff)
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 <[email protected]> Reviewed-by: Adam Jackson <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/glx/glxcmds.c1
1 files changed, 1 insertions, 0 deletions
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;