If the renderer fails to start it sets the run state to stopped, having lgInit where it was causes this to be reset to running triggering invalid usage of g_state.lgmp.
If the renderer fails to start it sets the run state to stopped, having lgInit where it was causes this to be reset to running triggering invalid usage of g_state.lgmp.