[SDL] SDL_thread and OpenGL on OS X
Steaphan Greene
stea at cs.binghamton.edu
Sat Apr 28 05:27:09 PDT 2007
On Sat, Apr 28, 2007 at 02:17:44PM +0200, Daniel Bünzli wrote:
>
> Le 28 avr. 07 à 13:48, Steaphan Greene a écrit :
>
> > I am quite sure that it IS a requirement in SDL-1.2 that only one
> > thread ever access the video system.
>
> Note we are talking about two different things here. When you use
> OpenGL you are not using SDL's video system anymore.
>
> Now it still may be that some platforms disallow two threads to enter
> OpenGL even if they don't do it concurrently. I know at least that
> it's not the case on osx. But I'am interested in knowing for the other
> platforms. Can anybody provide more information ?
No, I was referring to the use of OpenGL. Only the thread which
initializes SDL can make OpenGL calls. I ran into this on an project a
few years ago where I disobeyed this. If I remember right, it ran fine
in Linux, but crashed on Windows - until I adjusted the code to only use
the main thread for opengl access.
--
Steaphan Greene <sgreene at cs.binghamton.edu>
Lecturer, Computer Science, Binghamton University
GPG public key: http://www.cs.binghamton.edu/~sgreene/gpg.key.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070428/15872d6c/attachment.pgp
More information about the SDL
mailing list