PDA

View Full Version : Multiple AGLContext 's


LongJumper
2005.04.17, 10:39 PM
I have a situation where I have two seperate windows, and each needs to render something completly different. So I created two seperate contexts to put on each window. Unforunately, when I build a display list, only the context that is currently active will draw it correctly later, when I call that list. Do I need to create two seperate display lists or is there another work around for this?

ANd just out of curiosity, is a display list directly associated to the context it was created in? Like, glCreateList() could possibly return the same value twice if they were in different contexts?

OneSadCookie
2005.04.17, 10:58 PM
aglCreateContext has a shareContext parameter, which allows you to share textures, display lists, etc. between contexts.

and yes, if the contexts aren't shared, then they have entirely separate namespaces, so you can (and will) get identical list and texture ids in the different contexts.