I’m moving my GLUT creation to Windows, but when I try using threads it all goes horribly wrong. Specifically it crashes when I call swapbuffer inside the thread.
I wondered if it was cos hdc (global) was being accessed elsewhere so I copied it in my thread set up, then made the old hdc point to NULL (still had the same crash GLIDE3X.DLL acess violation or something).
If I call the rendering function using the timer function it works fine.
If I call swapbuffers on its own with no commands whatsoever it crashes. It drive me crazy.
Help would be much appreciated!