Fixed a lot of concurrency problems caused by glInit in RenderContext.
RenderContext is now half a singleton. Only one object can be created.