Move GL rendering context from global variable to WGL_state.