PDA

View Full Version : generating display list



Dave007
05-26-2002, 09:09 AM
Hi!

I need to create DL in a working thread, but it doesn't works. I used wglMakeCurrent() function but it hasn't taken an effect. Anyone knows how to solve this?

timfoleysama
05-26-2002, 04:04 PM
Just checking, but are you trying to render to the same context in another thread? If I remember things correctly, a wgl context may only be current to a single thread at a time...

If you *really* want to do the 'render in one thread, build lists in another' thing, then you must create two contexts and use wglShareLists... In the end, though, I don't think you'd see any performance gains from this (which I assume is your goal)...