GLDisplay.ensureContext

Ensures that the display has a valid GL context for the current thread. If context already contains a valid context, this does nothing.

class GLDisplay
bool
ensureContext

Parameters

otherContext gstgl.glcontext.GLContext

other #GstGLContext to share resources with.

context gstgl.glcontext.GLContext

the resulting #GstGLContext

Return Value

Type: bool

wether context contains a valid context.