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

otherContextother #GstGLContext to share resources with.
contextthe resulting #GstGLContext

Returns

wether context contains a valid context.

Throws

[ErrorWrap]