1991-2006
Silicon Graphics, Inc.
glXGetContextIDEXT
3G

# glXGetContextIDEXT

get the XID for a context.

## C Specification

                    GLXContextID glXGetContextIDEXT
                    const GLXContext ctx

## Parameters

`ctx`

  Specifies a GLX rendering context.

## Description

`glXGetContextIDEXT` returns the XID associated with a GLXContext.

No round trip is forced to the server; unlike most X calls that return a value, `glXGetContextIDEXT` does not flush any pending events.

`glXGetContextIDEXT` is part of the `EXT_import_context` extension, not part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by glXQueryExtensionsString, when called with argument `GLX_EXTENSIONS`, extension `EXT_import_context` is supported.

## Errors

`GLXBadContext` is generated if `ctx` does not refer to a valid context.

## See Also

glXCreateContext, glXQueryVersion, glXQueryExtensionsString

## Copyright

Copyright 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.