GLDisplay.ensureContext
bool ensureContext(gstgl.glcontext.GLContext otherContext = null, gstgl.glcontext.GLContext context = null)Ensures that the display has a valid GL context for the current thread. If context already contains a valid context, this does nothing.
Parameters
otherContext | other #GstGLContext to share resources with. |
context | the resulting #GstGLContext |
Returns
wether context contains a valid context.
Throws
[ErrorWrap]