# Function ocl_core::get_gl_context_info_khr [−] [src]

    pub fn get_gl_context_info_khr(
        properties: &ContextProperties,
        request: GlContextInfo
    ) -> OclCoreResult<GlContextInfoResult>

[INOPERATIVE: Needs troubleshooting] Returns OpenGL context information.

Used to query current or available devices associated with an existing OpenGL context/sharegroup.

`properties` must identify a single valid GL context or GL share group object and a valid platform.

### Debugging (notes)

For some reason, calling the function pointer returned by the call to `ffi::clGetExtensionFunctionAddressForPlatform` causes a segfault (`ffi::clGetExtensionFunctionAddressForPlatform` appears to be working just fine). The function pointer returned is not null.

Further investigation into the what address the returned function pointer points to is needed. There may be some Rust-specific quirk having to do with how libraries are loaded into memory. There may alternatively just be a simple mistake somewhere.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)