[SDL] SDL OpenGL context and threads
pjmlp at progtools.org
Fri Dec 31 05:19:22 PST 2010
the best way is to have just one thread deal with OpenGL commands. You may
have other threads
doing some other type of processing and then send the data ready to be sent
to OpenGL to the
drawing thread that owns the OpenGL context.
On Fri, Dec 31, 2010 at 1:28 AM, Michael Menegakis <arxeio at gmail.com> wrote:
> It's known that OpenGL drivers usually don't tolerate threading.
> However, does one have to deal with the main thread of SDL that
> brought up a GL context? If one spawns a thread and from then on only
> from there dispatches OpenGL commands will it be safe? Or does it have
> to be restricted to the main thread that brought up the SDL GL
> SDL mailing list
> SDL at lists.libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL