Set up OpenGL; create RenderThread for paints