GLXContextID _c_o_n_t_e_x_t_I_D )
delim $$
Only the server-side context information can be shared between X clients; client-side state, such as pixel storage modes, cannot be shared. Thus, ggllXXIImmppoorrttCCoonntteexxttEEXXTT must allocate memory to store client-side information. This memory is freed by calling ggllXXFFrreeeeCCoonntteexxttEEXXTT.
This call does not create a new XID. It merely makes an existing object available to the importing client (Display *). Like any XID, it goes away when the creating client drops its connection or the ID is explicitly deleted. Note that this is when the XID goes away. The object goes away when the XID goes away AND the context is not current to any thread.
If _c_o_n_t_e_x_t_I_D refers to a direct rendering context then no error is generated but ggllXXIImmppoorrttCCoonntteexxttEEXXTT returns NULL.
ggllXXIImmppoorrttCCoonntteexxttEEXXTT is part of the EEXXTT__iimmppoorrtt__ccoonntteexxtt extension, not part of the core GLX command set. If GGLLXX__EEXXTT__iimmppoorrtt__ccoonntteexxtt is included in the string returned by ggllXXQQuueerryyEExxtteennssiioonnssSSttrriinngg, when called with argument GGLLXX__EEXXTTEENNSSIIOONNSS, extension EEXXTT__iimmppoorrtt__ccoonntteexxtt is supported.