lionel.ulmer at free.fr
Fri Apr 7 16:07:36 CDT 2006
On Fri, Apr 07, 2006 at 11:47:08AM +0200, Stefan Dösinger wrote:
> I think we need to set the context before the first gl call in a thread. It
> should be enought to do a ckeck in ENTER_GL() if a context is set for the
> current thread, and if not create one and set it.
Yeah, check as soon as you want to do a GL call if this thread has already
his GL context set. And if no, create it (sharing the texture ids with the
'primary' one) and set it as current.
> I think we need a mutex or something simmilar for all the object structures
Yes we need to protect all internal states by mutexes (different than the
'GL' mutex as the plan would be to only ever call any GL function when
rendering on screen :-) ).
Lionel Ulmer - http://www.bbrox.org/
More information about the wine-devel