gl: add a scary note about initializing thread support for the winsys
authorMatthew Waters <ystreet00@gmail.com>
Tue, 24 Jun 2014 13:33:30 +0000 (23:33 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:43 +0000 (19:31 +0000)
commitbcce61526380667da34d65eda572e3242e3642bb
treefad91c8baca6b2d1b6c2f7d415186a19eeee5081
parent5fd0dc505e1fd6cc6d7327a3b2b11528a9fd414b
gl: add a scary note about initializing thread support for the winsys

We cannot do it as the winsys may crash if we initialize too late.

Example, GLX contexts with Intel drivers:
Intel requires the X Display to be the same in order to share GL
resources across GL contexts.  These GL contexts are generally
accessed from different threads.  Without winsys support it is
nearly impossible to guarentee that concurrent access will not
occur.  This concurrent access could result in crashes or abortion
by the winsys (xcb).

https://bugzilla.gnome.org/show_bug.cgi?id=731525
gst-libs/gst/gl/gstgldisplay.c