
And return early from `swap_buffers_with_damage` if the error would have led to flipping a NULL buffer. This is also the perfect time to remove the `egl_context_changed` parameter and move `_cogl_winsys_egl_ensure_current` closer to the code that actually needs it. Related: https://bugs.launchpad.net/bugs/2069565 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3817>