Called when the system has destroyed the underlying GL context. The `deinitialize` function will not be called in this case, however `initialize` will be called instead to prepare for a new render.