I don't how you render, but OpenGL is not thread safe.