[SDL] SDL OpenGL context and threads

Paulo Pinto 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
> context?
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20101231/7ce30725/attachment-0008.htm>

More information about the SDL mailing list