GLContext.create
bool create(gstgl.glcontext.GLContext otherContext = null)Creates an OpenGL context with the specified other_context as a context to share shareable OpenGL objects with. See the OpenGL specification for what is shared between OpenGL contexts.
Since 1.20, the configuration can be overriden with the environment variable GST_GL_CONFIG which is a stringified #GstStructure as would be returned from [gstgl.glcontext.GLContext.getConfig]. If GST_GL_CONFIG is not set, then the config will be chosen from other_context by calling [gstgl.glcontext.GLContext.getConfig] on other_context. Otherwise, a default configuration is used.
Calling [gstgl.glcontext.GLContext.requestConfig]) before calling [gstgl.glcontext.GLContext.create] will override the config from other_context but will not override the GST_GL_CONFIG environment variable.
If an error occurs, and error is not null, then error will contain details of the error and false will be returned.
Should only be called once.
Parameters
otherContext | a #GstGLContext to share OpenGL objects with |