View Full Version : Multi-threading

11-15-2005, 12:11 AM
I'm trying to get OpenGL working in a mutli-threaded environment, but have a problem with SwapBuffers crashing in my rendering thread.

Everything works fine if I call SwapBuffers it crashes with an exception violation.

This is under WindowsXP and hDC is correct.

Anyone got any suggestions?

11-15-2005, 07:31 AM
Could you be more specific about what and how you are using OpenGL + Threads ?

11-20-2005, 06:50 AM
More information would be useful.
Since I have to shoot in the dark I would check that the DC (and HWND) are created (and destroyed) in the rendering thread.
If this is already the case, it might be problem in the driver.