mirror of
https://github.com/brl/mutter.git
synced 2025-03-21 10:43:53 +00:00

On Wayland deinit() of an onscreen buffer is going to destroy the associated native window of an EGLSurface. So we should destroy the EGLSurface as well otherwise we might end up confusing the GL driver. We also currently guard against setting a EGL_NO_SURFACE as current EGLSurface, but this shouldn't be a problem if we have a surfaceless context. So we allow surface destruction under that condition. https://bugzilla.gnome.org/show_bug.cgi?id=754667