Call display() after rendering to a window