native: Restore previous EGL state after blitting onto secondary GPU

Before we just set it to "none", but this was not enough since various
calls will depend on not just the context being active, but the main
rendering surface.

Fixes https://gitlab.gnome.org/GNOME/mutter/issues/21
This commit is contained in:
Jonas Ådahl
2018-04-19 17:28:07 +02:00
parent 3104d697c0
commit ae26cd0774
4 changed files with 17 additions and 7 deletions

View File

@ -1911,12 +1911,7 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
* context.
*/
if (egl_context_changed)
{
_cogl_winsys_egl_make_current (cogl_display,
EGL_NO_SURFACE,
EGL_NO_SURFACE,
EGL_NO_CONTEXT);
}
_cogl_winsys_egl_ensure_current (cogl_display);
}
static gboolean