[330/906] Can now share textures with an external gl context
authorJulien Isorce <julien.isorce@gmail.com>
Sat, 18 Apr 2009 11:57:44 +0000 (13:57 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:21 +0000 (19:31 +0000)
commit2eb9cb551ca7eb887b5f2da8540d16a2c9645773
treec2d6e2f6c04426caa815f10af624b5ee210754da
parent09704b9e70297960d90ffba6087a9370ad87af45
[330/906] Can now share textures with an external gl context

The external opengl context must be specify when creating
our OpenGL context (glx) or just after (wgl).
When calling glXCreateContext or wglShareLists, the
external opengl context must not be current.
Then our gl context can be current in the gl thread while
the external gl context is current in an other thread.
See tests/examples/clutter/cluttershare.c
gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstgldisplay.h
gst-libs/gst/gl/gstglwindow.h
gst-libs/gst/gl/gstglwindow_cocoa.m
gst-libs/gst/gl/gstglwindow_win32.c
gst-libs/gst/gl/gstglwindow_winCE.c
gst-libs/gst/gl/gstglwindow_x11.c
gst-libs/gst/gl/gstglwindow_x11ES2.c