PDA

View Full Version : Can wglMakeCurrent make deadlock?



wexuv
05-11-2007, 12:22 AM
when i run ogl program on some computers,it just stoped at the function of wglMakeCurrent like deadlock. no error was reported. but it would work correctly on other computers.who can tell me why?

V-man
05-11-2007, 02:01 AM
Do you have multiple threads and calling wglMakeCurrent for the same context in each?

If that is the case, I suggest that you change it and have only 1 thread, the primary thread, do all GL calls.

Also, what hw, what drivers?

wexuv
05-13-2007, 09:03 PM
there is just one thread and the program can run correctly on other computers.
the run error computer's hardware:
video card: sis 651
driver: sisgrv.dll version: 6.14.0010.2220

V-man
05-13-2007, 10:52 PM
driver issue