diff options
author | Ian Romanick <[email protected]> | 2011-12-08 15:03:19 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-12-19 14:55:31 -0800 |
commit | a832aa5ba097253f53983e3f1186b71626d164ae (patch) | |
tree | d0b73b7795480fd965be26a186e0ec4af5a8f1d8 /src/glx | |
parent | b1ffb3335f629ed43bde44cee789dc9cdb35c306 (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]>
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/glxcmds.c | 1 |
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; |