[SDL] SDL_thread and OpenGL on OS X

Daniel Bünzli daniel.buenzli at epfl.ch
Fri Apr 27 12:39:35 PDT 2007


Le 27 avr. 07 à 21:24, Jacob Ole Juul Kolding a écrit :

> This code is wrapped in mutex's so no other threads should be  
> accessing the buffer.

Are you sure that a single thread accesses your OpenGL _context_ ?

OpenGL contexts are not thread-safe on osx, your mutex should wrap  
access to the context.

See the guidelines here [1] for more info.

Best,

Daniel

[1] http://developer.apple.com/documentation/GraphicsImaging/ 
Conceptual/OpenGL-MacProgGuide/opengl_threading/ 
chapter_12_section_1.html#//apple_ref/doc/uid/TP40001987-CH409-SW1



More information about the SDL mailing list