[vlc-devel] [PATCH] glspectrum: destroy OpenGL vout from the thread that created it

Steinar H. Gunderson sgunderson at bigfoot.com
Thu Mar 6 18:34:05 CET 2014

On Thu, Mar 06, 2014 at 06:14:03PM +0100, Felix Abecassis wrote:
> If I'm not mistaken, the instruction "mov %fs:0xffffffffffffff60,%rax"
> is the signature of thread-local storage usage. Thus we might actually
> have a threading requirement, at least with this implementation of
> OpenGL.

nVidia's code is much stricter than Mesa in this regard, but it is ultimately
right: You need to have a valid OpenGL context made current in any thread
that wishes to call gl* functions. (Furthermore, you can only use each
context from one thread at a time, although the rules are IIRC a bit fuzzy
on what happens with another thread if you attach a context that's already
in use by said thread.) Anything else is an application bug.

/* Steinar */
Homepage: http://www.sesse.net/

More information about the vlc-devel mailing list