From bb2e13a2f5474e5ffbffddfc6a1683a70531ffb8 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 14 May 2005 07:12:03 +0000 Subject: sys/glsink/glimagesink.c: And remember to set the context on the current thread, since there may be other glimagesinks. Original commit message from CVS: * sys/glsink/glimagesink.c: And remember to set the context on the current thread, since there may be other glimagesinks. --- sys/glsink/glimagesink.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys') diff --git a/sys/glsink/glimagesink.c b/sys/glsink/glimagesink.c index 9eb03177..ce2303b6 100644 --- a/sys/glsink/glimagesink.c +++ b/sys/glsink/glimagesink.c @@ -452,6 +452,9 @@ gst_glimagesink_chain (GstPad * pad, GstData * data) glimagesink->time = GST_BUFFER_TIMESTAMP (buf); } + glXMakeCurrent (glimagesink->display, glimagesink->window, + glimagesink->context); + if (glimagesink->parent_window) { XGetWindowAttributes (glimagesink->display, glimagesink->parent_window, &attr); -- cgit v1.2.1