PDA

View Full Version : wglShareLists



Rafael
03-16-2004, 02:26 AM
Hi,

I created a multiple view application. Each view (rendering context) has its own render thread (created using CreateThread(...) ). I want to use wglShareLists to be able to share textures and other stuff between my rendering contexts but wglShareLists does not work. Is it possible that I can't use it because I created my OpenGL contexts in different threads.

Rafael
03-16-2004, 04:32 AM
Meanwhile I can anwser my question myself.
I found out that I must make the rendering contexts in the other threads not current (wglMakeCurrent(0, 0) ) before using wglShareLists. Otherwise they are busy and
wglShareLists fails.