PDA

View Full Version : Can two HDC share one OpenGL context in VB?



hopeater
11-22-2000, 11:11 AM
Hi,
I have a program developed in VB and it contains two picture boxs. With only one OpenGL context to switch between the two picture boxes, the system seems work fine but only slows down as the times goes on. Is there any problem in this use of OpenGL context?
Thanks.

hopeater
11-22-2000, 02:15 PM
Hi,

Ok, I found the answer. The OpenGL context can't be shared between HDCs in different window. It's certainly a potential bug. The problem can only be discovered after several hours continuous running of the application.

Thanks to everyone.