Finally got OpenGL to run on a seperate thread.