added scenes; added ability to release openGL objects on main thread