PDA

View Full Version : How to use the same(share) texture in different OpenGL contexts.



netvir
07-28-2003, 06:49 AM
Hi!
There are something trouble me.I will use the same(share) texture in two different OpenGL contexts,But it only display in one.I think it will use wglShareLists,but it not help.
There are the code: www.7forever.com/code.zip (http://www.7forever.com/code.zip)

Olive
07-28-2003, 11:10 PM
wglShareLists is the answer and it should work. The spec states that both GL contexts must share the same pixel format so maybe that is your problem (I rapidly went through split2.cpp and split2view.cpp and didn't notice anything particular)